问题描述
我想按原样在CLOB字段中插入下面的段落。
ABC
DEF
即使我尝试如下更新,它也没有存储新行。 “ ABC” || CHR(10)||'DEF'
解决方法
即使在我的11gXE中也可以:
$(".home-box").mouseenter(function() {
clearTimeout(timeout);
$(this).css("opacity",1);
});
$(".home-box").mouseleave(function() {
var $element = $(this)
timeout = setTimeout(function(){
$element.css("opacity",0);
},500);
});
也许是您的客户端(它是哪个客户端?SQL Developer?TOAD?还有其他内容?)显示它错误。
,create table t (c clob);
declare
mystring constant t.c%type := 'ABC
DEF';
begin
insert into t (c) values (mystring);
commit;
end;
/
select c from t;
输出:
Table created.
PL/SQL procedure successfully completed.
C
--------------
ABC
DEF
1 row selected.
,
我刚刚使用SQL Developer 20.2进行了测试,发现运行选择之后,新行字符不会立即显示。
但是,如果双击CLOB单元格(或双击后单击铅笔),它将正确显示换行符。