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!

How to update row when data contains single quote ?

bootstrapDec 24 2010 — edited Dec 25 2010
Hi,
Please see this query:
update query_tab set  title='It's common knowledg' where 
id='1121';
I have this update query coming from .NET, but abviously this is error since single quote in the text (title column) given by user gives wrong meaning to sql parser. So, how to solve this problem ?

Edited by: bootstrap on Dec 25, 2010 9:53 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 22 2011
Added on Dec 24 2010
4 comments
7,293 views