How To Set Server Output On in DataGrip

前端 未结 2 1174
情书的邮戳
情书的邮戳 2020-12-15 07:23

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 t

2条回答
  •  悲哀的现实
    2020-12-15 07:52

    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 the DBMS_OUTPUT.enable() stored procedure on your behalf. Additionally it signals to the client that is should inspect the DBMS_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() and DBMS_OUTPUT.get_lines() as needed.

提交回复
热议问题