mysql 特殊字符 查询 处理

来源:互联网 发布:软件开发模板 编辑:程序博客网 时间:2024/05/17 02:47

查询mysql中的特殊字符

select * from test where content like concat('%',char(8),'%');

替换数据库中的特殊字符

update test set content=REPLACE(content, CHAR(8), '') where content like '%%';

0 0