什么相当于 MySQL 的 DBMS_OUTPUT

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19748670/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 19:18:58  来源:igfitidea点击:

what is equivalent of MySQL of DBMS_OUTPUT

mysqloracledbms-output

提问by ckl

I try to write a MySQL strored procedure, and want to send some output to console, or stdout. Oracle use DBMS_OUTPUT.PUTLINE to debugginf.

我尝试编写一个 MySQL 存储过程,并希望将一些输出发送到控制台或标准输出。Oracle 使用 DBMS_OUTPUT.PUTLINE 来调试。

Is there an equivalent of DBMS_OUTPUT in MySQL stored procedures?

MySQL 存储过程中是否有等效的 DBMS_OUTPUT?

回答by Iswanto San

In Oracle :

在甲骨文:

DBMS_OUTPUT.put('Hello World');

In MySQL :

在 MySQL 中:

SELECT 'Hello World!';