php如何批量修改某一字段的值?
烟雨江南
烟雨江南 2017-03-13 09:30:33
0
1
1105
烟雨江南
烟雨江南

reply all(1)
迷茫

where in 不能直接传数组的

$arr=[33, 64, 89, 128];

echo $sql="update table set `column`='value' where id in ('".implode("','",$arr)."');";
// update table set `column`='value' where id in ('33','64','89','128');
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template