Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

escape sequence

Status
Not open for further replies.

kiyoka

IS-IT--Management
Oct 25, 2002
3
US
I followed metalink and tried the following with error. Does anyone have other suggestion? Thanks in advance.

SQL> set escape SQL> set escape on
SQL> select * from dual
2 where dummy ='O/'Reilly' escape '/';
ERROR:
ORA-01756: quoted string not properly terminated
 
The following query will work. It uses two consecutive single quotes. That's how to embed a single quote within a string.

select * from dual
where dummy ='O''Reilly'
 
Thanks :)
Wow, this site is better than Metalink!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top