[英]DBbeaver PL/SQL why it doesnt use SET SERVEROUTPUT ON?
THIS WORKS这行得通
-- SET SERVEROUTPUT ON
DECLARE
v_num NUMBER := 0;
BEGIN
LOOP
dbms_output.put_line(' v_num : ' || v_num);
v_num := v_num + 1;
EXIT WHEN v_num > 4;
END LOOP;
END;
--/
THIS DOESNT AND I HAVE NO IDEA WHY这没有,我也不知道为什么
SET SERVEROUTPUT ON
DECLARE
v_num NUMBER := 0;
BEGIN
LOOP
dbms_output.put_line(' v_num : ' || v_num);
v_num := v_num + 1;
EXIT WHEN v_num > 4;
END LOOP;
END;
/
I WAS EXPECTING我在期待
1
2
3
4
SET SERVEROUTPUT ON设置服务器输出
Is a command of SQLPLUS (Oracles "command line tool" to access the DB)是SQLPLUS的一条命令(Oracle访问DB的“命令行工具”)
=> It is not SQL that you send to the server. => 您发送到服务器的不是 SQL。 It is used on your client.
它用于您的客户端。
As you use a different tool, I assume this is no implemented there...当你使用不同的工具时,我认为这没有在那里实现......
And for the specific case ( = you want to view dbms_output output):对于特定情况(=您想查看 dbms_output 输出):
There is an output tab in DBeaver where the dbms_output occurs... DBeaver 中有一个 output 选项卡,其中出现 dbms_output ...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.