mysql查询处理转义符
文章描述:
MySQL在查询内容的时候处理查询的字段里面内容
转义符
把数据库中字段为&处理成&
例子:有效匹配
SELECT a.id,a.type,a.version_id,REPLACE(a.content, '&', '&') AS content,a.ip,a.datatime,b.state_info FROM `sys_phone_code` AS a
LEFT JOIN sys_service_feedback AS b
ON a.phone = b.phone
where a.id>10000 AND a.id<20000 ORDER BY a.id DESC
发布时间:2022/11/02
发表评论