Escaping single quote in PLSQL

前端 未结 4 1326
旧时难觅i
旧时难觅i 2020-12-01 12:13

I want PLSQL to generate strings like:

COMMENT ON COLUMN TABLE.COLUMN IS \'comment from database\';

My solution is:

declare         


        
4条回答
  •  借酒劲吻你
    2020-12-01 12:39

    You need to use '' in the code But Before trying it to the actual code ,

    try the line which has quotes in the dual

    For example:

    select '''sumesh''' from dual
    

提交回复
热议问题