Mysql模糊查询Like传递参数的语句

set @keyWord='我的';

select * from tblcontent where content like CONCAT('%',@keyWord,'%')

猜你喜欢

转载自www.cnblogs.com/94cool/p/9815632.html