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 pass value in a string with single quotes

Jaismeen-OracleJul 1 2019 — edited Jul 2 2019

Hello All,

I need to pass where clause as a dynamic string to the other procedure.

I am having table which has where clause as wo_operation= l_operation_id(i) and language =rec_lan.code

   I am having procedure in below manner

TEST(upper('MTH_OPERATIONS_TL'), NULL,' wo_operation ='||l_operation_id(i) ||' and language = '|rec_lan.code ,'INSERT', my_test);

when it generates the sql it gave

select * from MTH_OPERATIONS_TL where wo_operation= 5123 and language =US

Issue is US came like this instead of being in single quotes  like 'US'

Can someone please let me know how to pass rec_lan.code so that value comes as 'US'.

Thank you so much

This post has been answered by L. Fernigrini on Jul 1 2019
Jump to Answer
Comments
Post Details
Added on Jul 1 2019
5 comments
6,643 views