【发布时间】:2021-05-22 11:21:39
【问题描述】:
我想将我的所有数据导出为插入语句。 在 Sql Developer 中,命令“set sqlformat insert”工作得很好......但是当我想在 sqlplus 上使用它时,我有这个错误消息:SP2-0158 unknown SET option "sqlformat"
此命令在脚本上使用时有效,但我已经编写了脚本:
spool /data/scripts/result/test.sql
set sqlformat insert;
select * from mytable;
spool off
我在 SQLdev 上尝试了相同的代码,它可以工作...
如何在 sqlplus 上正确使用?
【问题讨论】:
-
Here is the syntax for SQL*Plus 19c SET commands。没有
sqlformat。