Print text in Oracle SQL Developer SQL Worksheet window

前端 未结 8 467
醉梦人生
醉梦人生 2021-01-30 01:47

I am using Oracle SQL (in SQLDeveloper, using the SQL Worksheet). I would like to print a statement before my select, such as

PRINT \'Querying Table1\';
SELECT          


        
相关标签:
8条回答
  • 2021-01-30 02:52

    For me, I could only get it to work with

    set serveroutput on format word_wrapped;
    

    The wraped and WRAPPED just threw errors: SQLPLUS command failed - not enough arguments

    0 讨论(0)
  • 2021-01-30 02:53

    If I ommit begin - end it is error. So for me this is working (nothing else needed):

    set serveroutput on;
    begin
    DBMS_OUTPUT.PUT_LINE('testing');
    end;
    
    0 讨论(0)
提交回复
热议问题