查询存在某些关键词的记录:
select * from `表名` where `字段名` regexp '关键词1|关键词2|关键词3';
查询不存在某些关键词的记录:
select * from `表名` where `字段名` not regexp '关键词1|关键词2|关键词3';
删除包含指定关键词的记录
delete from `表` where `字段` like '%关键词1%' or like '%关键词2%' or like '%关键词3%'
删除不包含指定关键词的记录
delete from `表` where `字段` not like '%关键词%'