PHP关于mysql批量更新数据

由于得推网手册编辑的时候需要用到批量更新,在文章数量较多的时候,通过循环更新容易引起性能问题。 所以我们需要使用到SQL批量更新 SQL:insert into ...on duplicate key update PHP写法 if(!empty($updata)){ $sql=" insert into ".table('article')."(id,pid,title,orderindex)
相关文章
相关标签/搜索