Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / April 2005

Tip: Looking for answers? Try searching our database.

Simple question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Will Honea - 29 Apr 2005 06:56 GMT
Not feeling especially sharp tonight, I couldn't find the reference to
this:

given:
select * from table where name = 'text'

What is the correct esacpe character to use when 'text' is a name like
O'Malley?  I' drawing a blank in a serious senior moment.

Signature

Will Honea

Mark A - 29 Apr 2005 08:02 GMT
> Not feeling especially sharp tonight, I couldn't find the reference to
> this:
[quoted text clipped - 4 lines]
> What is the correct esacpe character to use when 'text' is a name like
> O'Malley?  I' drawing a blank in a serious senior moment.

two single quotes

select * from table where name = 'O''Malley'
Will Honea - 29 Apr 2005 08:14 GMT
> > given:
> > select * from table where name = 'text'
[quoted text clipped - 5 lines]
>
> select * from table where name = 'O''Malley'

Thank you.  Slaps forehead, muttering "of course!".

Signature

Will Honea

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.