When executing a script on SQLPlus, it prints a sequence of numbers instead of output

后端 未结 3 921
[愿得一人]
[愿得一人] 2021-01-20 16:05

I\'m trying to execute a script on SQL PLus, it\'s simple.

SET serveroutput ON;
DECLARE
    mode NUMBER(1) := 1;

IF (mode = 1) THEN

    prompt \'HERE\'

EN         


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-20 16:47

    Go to your oracle home Oracle\product\\client_2\sqlplus\admin\glogin.sql and add the following lines to enable printing globally,

    SET ECHO ON;
    SET TERM ON;
    WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
    SET DEFINE OFF;
    

提交回复
热议问题