Home  >  Article  >  Backend Development  >  sql statement PHP batch delete sql statement

sql statement PHP batch delete sql statement

WBOY
WBOYOriginal
2016-07-29 08:39:591209browse

First of all, you need to understand the sql statement
$SQL="delete from `jb51` where id in (1,2,4)";
The form is probably:

Copy the code The code is as follows:










php function mainly uses implode

Copy code The code is as follows:


$ID_Dele= implode(",",$_POST['ID_Dele']);
$SQL="delete from `user` where id in ($ID_Dele)";


http://www.jb51.net/article/6488 .htm

The above introduces the sql statement PHP batch delete sql statement, including the content of sql statement. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn