scalar subquery in if statement Condition in PL/SQL

后端 未结 3 1975
一生所求
一生所求 2021-01-23 06:50

I have an If Statement block similar to the below which is failing with the error - PLS-00103: Encountered the symbol \"SELECT\" when expecting one of the following....

3条回答
  •  孤城傲影
    2021-01-23 07:01

    Have you called DBMS_OUTPUT.ENABLE

    Quick example

    BEGIN
    DBMS_OUTPUT.DISABLE;
    DBMS_OUTPUT.PUT_LINE('Disabled');
    DBMS_OUTPUT.ENABLE;
    DBMS_OUTPUT.PUT_LINE('Enabled');
    END;
    

提交回复
热议问题