Oracle 为什么生成的insert语句在clob字段中使用空的_clob()代替null?
我创建了一个带有CLOB列的表:Oracle 为什么生成的insert语句在clob字段中使用空的_clob()代替null?,oracle,oracle-sqldeveloper,clob,Oracle,Oracle Sqldeveloper,Clob,我创建了一个带有CLOB列的表: create table t2 (a clob); 并在其中插入了一些值: insert into t2 values('A'); insert into t2 values('B'); insert into t2 values(null); insert into t2 values('C'); insert into t2 values('D'); commit; 在SQL Developer中,我正在运行查询: Select * from T2;
create table t2 (a clob);
并在其中插入了一些值:
insert into t2 values('A');
insert into t2 values('B');
insert into t2 values(null);
insert into t2 values('C');
insert into t2 values('D');
commit;
在SQL Developer中,我正在运行查询:
Select * from T2;
查询结果窗口显示空值的(null)
。然后将查询结果导出为insert语句。它产生的是:
REM INSERTING into T2
SET DEFINE OFF;
Insert into T2 (A) values ('A');
Insert into T2 (A) values ('B');
Insert into T2 (A) values ( EMPTY_CLOB());
Insert into T2 (A) values ('C');
Insert into T2 (A) values ('D');
使用/*insert*/
查询指令和set-sqlformat-insert
生成相同的输出
我不希望
EMPTY\u CLOB()
作为值,我希望null
与我之前插入的一样。如何停止像这样生成insert语句?是否有控制此操作的设置?它对/*insert*/
修饰符和set-sqlformat-insert
执行相同的操作。看起来像只虫子?可能值得提高或通过Oracle支持提出服务请求。谢谢Alex,我当然会提高。