去除換行 update zhzl_address t set t.add_administration_num=replace(t.add_administration_num,chr(10),'');
去掉斷行符號 update zhzl_address t set t.add_administration_num=replace(t.add_administration_num,chr(13),'');
去掉空格 update zhzl_address t set t.add_administration_num=trim(t.add_administration_num);
-----------------------------
1、斷行符號分行符號 chr(10)是分行符號,
chr(13)是斷行符號,
增加分行符號
select ' update ' || table_name ||
' set VALID_STATE =''0A'';'||chr(13)||' commit;'
from user_tables
刪除分行符號 select id,replace(content,to_char(chr(13))||to_char(chr(10)),'_r_n') from fact_content order by content;