Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

quotes in insert statement

OnenessboyAug 1 2011 — edited Aug 2 2011
Hi all,

I have a Insert statement as follows.

insert into mytable(description)
values('Spoon 'n Fork');

In order to have the single quote before the n, I can frame the sentence as follows,

insert into mytable(description)
values('Spoon ''n Fork');

But if the same comes in a sql script there many rows will have single quote as 'n.
How can I fix this?

any ideas

thanks
asp
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2011
Added on Aug 1 2011
9 comments
607 views