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.
我的表只有一个字段 ex:title (varchar:255) 并设置为 FULLTEXT 索引
我想删除只包含一个单词的记录
谢谢
这使用通配符匹配并将删除文本中没有空格的所有行:
DELETE FROM tbl WHERE col NOT LIKE '% %'
MySQL 手册 - LIKE 运算符