Print text in Oracle SQL Developer SQL Worksheet window

前端 未结 8 468
醉梦人生
醉梦人生 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:28

    The main answer left out a step for new installs where one has to open up the dbms output window.

    Then the script I used:

    dbms_output.put_line('Start');
    

    Another script:

    set serveroutput on format wrapped;
    begin
        DBMS_OUTPUT.put_line('jabberwocky');
    end;
    

提交回复
热议问题