删除包含指定字符的记录

delete from `表` where `字段` like '%指定字符1%' or like '%指定字符2%' or like '%指定字符3%'

 

删除不包含指定字符的记录

delete from `表` where `字段`  not like '%指定字符1%'

 

共有 0 条评论