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!

Alternative to inserting a quote

sk12345678Sep 15 2011 — edited Sep 15 2011
I am used to append code using '''' for a ' in building sql statement

l_sql := 'where col1 ' || '''' || l_CHAR_VAR || '''';

I know that new versions have better way of writing this statement. Can someone please post a better way to write this. Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 13 2011
Added on Sep 15 2011
6 comments
123 views