今天有个导出数据的任务, 发现有个CLOB字段的数据并没有出现在我的Insert脚本里。查了一下有的说是版本问题,但是我的版本升级到Version 19.1.0.094,但是正常的EXPORT操作还是没有我想要的结果。 后来发现有种方式可以。
set long 100000
set lines 1000
spool C:\Users\ins.sql
select /*insert*/ * from T;
spool off
*********注意要点, 开始我把重点忽略了*****
The /*insert*/ is a SQL Developer facility, so you need to use it within that tool using "Run Script" (not "Run Statement") and the output should appear in the "Script Output"