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.
如果我选择这些特定的行使用
select * from wp_posts where title like 'abc%'
它现在显示行 我想使用 php 删除这些行 我可以这样做还是我错 了提前谢谢
如果您将代码更完整一点,那会更有趣。但基本上SQL命令如下:
delete from wp_posts where title like 'abc%'
如果有激活密钥之类的敏感数据,则需要使用mysql的二进制函数来检查abc是否与ABC匹配。
使用这个:
delete from wp_posts where title like binary('ABC%')