当前位置:Gxlcms > 数据库问题 > oracle 回车、换行符

oracle 回车、换行符

时间:2021-07-01 10:21:17 帮助过:18人阅读

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;

oracle中去掉文本中的换行符、回车符、制表符小结

一、特殊符号ascii定义

制表符 chr(9)
换行符 chr(10)
回车符 chr(13)

二、嵌套使用repalce,注意每次只能提交一个符号,如先回车再换行 

select REPLACE(gg, chr(10), ‘‘) from dual    

要注意chr(13) | | chr(10) 此类结合使用的情况比较多,

回车换行在notepad中是比较好看点的,所以要考虑此种情况          

select translate(string,chr(13)||chr(10),,) from dual;

 三、对于字符大对象的符号处理

对于clob字段中的符号处理,先to_char然后一样的处理

select to_char(vcl),replace(to_char(vcl),chr(10),[]) from test_1;

 

 

oracle 回车、换行符

标签:ascii   from   情况   notepad   upd   rom   color   bsp   符号   

人气教程排行