Oracle PL/SQL string compare issue

前端 未结 7 1132
予麋鹿
予麋鹿 2020-12-24 14:16

I have the following Oracle PL/SQL codes that may be rusty from you guys perspective:

 DECLARE
 str1  varchar2(4000);
 str2  varchar2(4000);
 BEGIN
   str1:         


        
7条回答
  •  星月不相逢
    2020-12-24 15:02

    To the first question:

    Probably the message wasn't print out because you have the output turned off. Use these commands to turn it back on:

    set serveroutput on
    exec dbms_output.enable(1000000);
    

    On the second question:

    My PLSQL is quite rusty so I can't give you a full snippet, but you'll need to loop over the result set of the SQL query and CONCAT all the strings together.

提交回复
热议问题