Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从 my_table 中删除,其中电子邮件的文本中不包含“gmail”。
我怎样才能匹配它?
使用INSTR()
DELETE FROM my_table WHERE instr(`email`, 'gmail') = 0
从 my_table 中删除电子邮件不是 REGEXP 'gmail'
您可以按如下方式使用“不喜欢”:
DELETE FROM my_table WHERE email NOT LIKE '%gmail%'