PHP 批量删除 sql语句
首先要了解sql语句
$SQL=”delete from `jb51` where id in (1,2,4)”;
表单大概是:
$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)”;
$SQL=”delete from `user` where id in ($ID_Dele)”;
https:来源gaodai#ma#com搞*!代#%^码网//www.gaodaima.com/article/6488.htm
以上就是PHP 批量删除 sql语句的详细内容,更多请关注gaodaima搞代码网其它相关文章!