模糊匹配 百分号(%):表示任意个或多个字符下划线(_):表示任意单个字符 select * from tablename where field1 like ‘%hello_’; 可以直接对参数进行模糊查询: select * from user where name like concat(’%’, ‘hello’, ‘%’); 正则匹配 ^: 匹配表达式开始$: 匹配表达式结束.: 匹配任务单个字符*: 匹配0个或多个表达式+: 匹配一个或多个表达式 select * from tablename where field1 regexp ‘hello.’;