mysql實現批量刪除的方法:使用sql實現批量刪除數據,代碼為【DELETE "欄位名" FROM "表格名" WHERE "欄位名" IN ('值一', '值二', ...);】。
mysql實作批次刪除的方法:
sql刪除一個資料語法:
DELETE "栏位名" FROM "表格名" WHERE "栏位名" = '值';
範例:
DELETE * from formName where "name" = 'jack';
sql批次刪除資料語法:
DELETE "栏位名" FROM "表格名" WHERE "栏位名" IN ('值一', '值二', ...);
範例:
DELETE * from formName where "name" in ('jack','rose','tom');
更多相關免費學習推薦:mysql教學(視 頻)
以上是mysql如何實作批次刪除的詳細內容。更多資訊請關注PHP中文網其他相關文章!