摘要: SQL模糊查询的时候,如果字段中有%,我们又希望查找出所有有%的字段,使用select * from table where name like '%%%'类似的语句是不行的。这时候我们可以使用select * from table where name like '%[%]%。 阅读全文
posted @ 2022-09-19 18:09 moonsoft 阅读(279) 评论(0) 推荐(0) 编辑
摘要: select * from temp where num1 like '%\%%' escape '\'; 阅读全文
posted @ 2022-09-19 17:59 moonsoft 阅读(194) 评论(0) 推荐(0) 编辑