How Can I "set server output" on in Jetbrains DataGrip IDE? I am able to do this in SQL Developer and run the SQL script successfully. The same script I try to run in DataGrip and it gives error. I know its the "set server output on" that is not working because I had to configure SQL Developer for it to work. Any advice would be appreciated. Thanks.
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- Jetbrains Datagrip cannot connect sql server witho
- php PDO::FETCH_ASSOC doesnt detect select after ba
Server output is client side functionality that not all clients support. SQL*Plus and SQL Developer do, but it's not a given that any other client will.
The SQL*Plus client command
set serveroutput on
essentially calls theDBMS_OUTPUT.enable()
stored procedure on your behalf. Additionally it signals to the client that is should inspect theDBMS_OUTPUT.get_lines()
procedure for cached output after each code block is executed.If DataGrip doesn't do this already, you may be able to manually code the calls to
DBMS_OUTPUT.enable()
andDBMS_OUTPUT.get_lines()
as needed.According to the documentation:
They also show an image of the window with the button enabled;
Update: 2019
The icon to enable the output looks like:
On MacOS it can be enabled with Command+F8.