Selecting "special" characters from a table

From: Rocqueforte OLeary <rocky_at_arthur.st.nepean.uws.edu.au>
Date: 22 Feb 1995 18:30:05 +1100
Message-ID: <rocky.793438048_at_lancelot.st.nepean.uws.edu.au>


G'day,

A fairly simple problem. I have a table with a varchar field ("Name"), into which I wish to put the name "O'Leary". How do I escape the ' character so sqlplus doesn't interpret it as the end of the column ? Likewise, how do I do a select * from table where name = "O'Leary" ?

Thanks to anyone who can solve this!

-- 
*** Rocqueforte "Rocky" O'Leary *** CSO,DBA,BOFH *** B.App.Sci.(Comp, Hons) ***

** Work: Uni Of Western Sydney,Nepean, AU * email:rocky_at_st.nepean.uws.edu.au **
**
Tel: 047 360156 *** WWW:http://www.st.nepean.uws.edu.au/~rocky/index.html **
***** "Baldrick, you can have a day off when you are dead" ~ E.Blackadder *****
Received on Wed Feb 22 1995 - 08:30:05 CET

Original text of this message