Home > Backend Development > PHP Tutorial > PHP 批量删除 sql语句_php技巧

PHP 批量删除 sql语句_php技巧

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-17 09:32:20
Original
957 people have browsed it
首先要了解sql语句
$SQL="delete from `jb51` where id in (1,2,4)";
表单大概是:
复制代码 代码如下:









php函数主要用到implode
复制代码 代码如下:

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

http://www.jb51.net/article/6488.htm
Related labels:
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template