高效模糊查询like

来源:互联网 发布:上班看盘小软件 编辑:程序博客网 时间:2024/05/16 05:58

不多说,直接上代码。


select  * from table where name like '%王大锤%';


select * from table where LOCATE(‘王大锤’,name)>0;


原创粉丝点击