Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is equivalent of MySQL of DBMS_OUTPUT [duplicate]

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.

Is there an equivalent of DBMS_OUTPUT in MySQL stored procedures?

like image 585
ckl Avatar asked Nov 03 '13 00:11

ckl


People also ask

What is DBMS_OUTPUT Put_line in SQL?

The Oracle dbms_output. put_line procedure allows you to write data to flat file or to direct your PL/SQL output to a screen. Here is a code example using dbms_output.

Is DBMS_OUTPUT allowed in trigger?

43. DBMS_OUTPUT. The DBMS_OUTPUT package enables you to send messages from stored procedures, packages, and triggers. The PUT and PUT_LINE procedures in this package enable you to place information in a buffer that can be read by another trigger, procedure, or package.

What is the meaning of DBMS_OUTPUT?

The DBMS_OUTPUT is a built-in package that enables you to display output, debugging information, and send messages from PL/SQL blocks, subprograms, packages, and triggers.

Does DBMS_OUTPUT Put_line affect performance?

So yes, dbms_output. put_line decreases the performance.


1 Answers

In Oracle :

DBMS_OUTPUT.put('Hello World');

In MySQL :

SELECT 'Hello World!';
like image 151
Iswanto San Avatar answered Sep 26 '22 09:09

Iswanto San