sql 字段中的百分号

SQL模糊查询的时候,如果字段中有%,我们又希望查找出所有有%的字段,使用select * from table where name like '%%%'类似的语句是不行的。这时候我们可以使用select * from table where name like '%[%]%。
posted @ 2022-09-19 18:09  moonsoft  阅读(281)  评论(0编辑  收藏  举报