sql statement PHP batch delete sql statement

WBOY
Release: 2016-07-29 08:39:59
Original
1186 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!