发布时间:2016-12-30 13:35:45
原文 http://forthxu.com/blog/article/64.htmlUPDATE mytable SET myfield = 'value' WHERE other_field = 'other_value'; 也可以这样用in指定要更新的记录:foreach ($values as $id => $myvalue) { $sql = "UPDATE mytable SET myfield = $myvalue WHERE id = $id"; my.........【阅读全文】