如何去除Oracle数据库字段中回车换行符:
·通过SQL
| updatetablesetfa=replace(fa,chr(13),’’);---除去回车符
updatetablesetfa=replace(fa,’’,’’);---除去空格符 |
·通过代码
| fixedString=string.replaceAll("\n","").replaceAll("chr(13)","").replaceAll("",""); |
本文介绍如何使用SQL更新语句去除Oracle数据库字段中的回车符和换行符,包括回车符(chr(13))及换行符(
),还提供了通过代码实现字符串替换的方法。
如何去除Oracle数据库字段中回车换行符:
·通过SQL
| updatetablesetfa=replace(fa,chr(13),’’);---除去回车符
updatetablesetfa=replace(fa,’’,’’);---除去空格符 |
·通过代码
| fixedString=string.replaceAll("\n","").replaceAll("chr(13)","").replaceAll("",""); |

被折叠的 条评论
为什么被折叠?