Oracle SqlPlus - saving output in a file but don't show on screen

前端 未结 4 1376

Using SqlPlus for Oracle, how do I save the output of a query in a file but not show it on the terminal/prompt.

4条回答
  •  猫巷女王i
    2021-01-01 09:34

    set termout off doesn't work from the command line, so create a file e.g. termout_off.sql containing the line:

    set termout off
    

    and call this from the SQL prompt:

    SQL> @termout_off
    

提交回复
热议问题