由于下划线在模糊查询中属于通配符 当我们查询的条件中包含"_"字符而又不希望他是作为通配符出现时 可以使用如下查询方式: select * from table where name like "XXX\_" escape "\"