3
sql 语句查换行隐形字符
source link: https://blogread.cn/it/article/1538?f=hot1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
sql 语句查换行隐形字符
浏览:2288次 出处信息
-- 制表符 CHAR(9)
-- 换行符 CHAR(10)
-- 回车 CHAR(13)
--在表aaa中过滤包含回车换行符的字段b的记录
select * from aaa where charindex(char(10)+char(13),b)>0
--在表aaa中把包含回车换行符的字段b的记录的回车换行符去掉
update aaa set b=replace(b,char(10)+char(13),'')
建议继续学习:
QQ技术交流群:445447336,欢迎加入!
扫一扫订阅我的微信号:IT技术博客大学习
扫一扫订阅我的微信号:IT技术博客大学习
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK