oracle怎么导出lob字段,oracle-sqldeveloper – 如何在oracle sql developer中导出clob字段数据...

如果你不想(或不能)

export and import你的数据,并且真的想要它作为一组插入语句,你可以使用SQL Developer的内置格式化工具自动将你的CLOB拆分成多个足够小的块.作为字符串文字有效,然后将结果假脱机到文件:

spool clob_export.sql

select /*insert*/ * from your_table;

spool off

使用更新的版本,您可以使用the sqlformat command来控制输出格式,而无需修改查询;这相当于:

set sqlformat insert

spool clob_export.sql

select * from your_table;

spool off

生成的insert语句如下所示:

REM INSERTING into YOUR_TABLE

SET DEFINE OFF;

Insert into YOUR_TABLE (ID,CLOB_COLUMN) values (1,TO_CLOB('... up to 4k of characters with quotes escaped ...')

|| TO_CLOB('... up to 4k of characters with quotes escaped ...')

|| TO_CLOB('... up to 4k of characters with quotes escaped ...')

...

|| TO_CLOB('... up to 4k of characters with quotes escaped ...'));

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值