![](/img/trans.png)
[英]How to make a hyperlink to all the rows in a particular column of a table using php
[英]how to delete particular number of rows in a table using php
如果我選擇這些特定的行使用
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%')
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.