如何用sql语句,判断数据库中某字段的内容,包含于某字符串

如题所述

select * from è¡¨å where å­—段名 like '%关键字%'

上述语句是在“表名”中的“字段名”列搜索包含“关键字”的语句

温馨提示:答案为网友推荐,仅供参考
第1个回答  2017-03-06
select * from 表 where name REGEXP '我是小小';
第2个回答  2015-09-28
text 字段
$keyword 筛选字符
select * from tablename where text like '%$keyword%' ;