Finding line break and carriage return (\r\n) in MySQL

时光毁灭记忆、已成空白 提交于 2019-12-17 18:37:06

问题


I can't seem to find any info about this on the internet (or I'm just not looking in the right direction).

I have a few fields in my MySQL database containing a carriage return and line break \r\n .

Is there somebody who can tell me how to find them by using a query??


回答1:


SELECT * FROM mytable WHERE mycolumn REGEXP "\r\n";

finds all records in mytable where mycolumn contains a \r\n sequence.



来源:https://stackoverflow.com/questions/10997159/finding-line-break-and-carriage-return-r-n-in-mysql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!