php批量剔除
程序员文章站
2022-03-27 09:54:05
...
php批量删除
批量删除
将要删除的数据的id组成数组
删除语句:
delete from `user` where id in ($ID_Dele)
如下:
php函数主要用到implode
代码如下:
$ID_Dele= implode(",",$_POST['ID_Dele']);
$SQL="delete from `user` where id in ($ID_Dele)";
批量删除
将要删除的数据的id组成数组
删除语句:
delete from `user` where id in ($ID_Dele)
如下:
php函数主要用到implode
代码如下:
$ID_Dele= implode(",",$_POST['ID_Dele']);
$SQL="delete from `user` where id in ($ID_Dele)";
相关文章
相关视频
上一篇: PHP中余数和取余的用法