Print text in Oracle SQL Developer SQL Worksheet window

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

提交回复
热议问题