当我运行以下输出时。
宣布
inputData VARCHAR2(1024);
开始
inputData:='&& inputData' ;
Dbms_Output.put_line('输入的值是:' || inputData);
结束;
/
Enter value for inputdata: check
old 4: inputData :='&&inputData' ;
new 4: inputData :='check' ;
Value entered is:check
PL/SQL procedure successfully completed.
But i Want to know the reason why old and new value print.I know How to off it.
i just want to know reason.
答案 0 :(得分:1)
您可以使用set verify off
关闭新旧值显示。希望下面的代码段有用。
SQL> SET VERIFY OFF;
SQL> set serveroutput on;
SQL> DECLARE
2 inputData VARCHAR2(1024);
3 BEGIN
4 inputData :='&&inputData' ;
5 Dbms_Output.put_line('Value entered is:' || inputData);
6 END;
7 /
Enter value for inputdata: test
Value entered is:test
PL/SQL procedure successfully completed.
SQL>