08 2021 档案
摘要:1、update ceshi c1,ceshi2 c2 set c1.num=c2.aa where c1.id=c2.cid; 2、update ceshi c1 INNER JOIN ceshi2 c2 on c1.id=c2.cid set c1.num=c2.aa; 比较推荐使用第一种,第二
阅读全文
摘要:save()方法可以新增数据,也可以修改数据 但是要注意,在第二次save()的时候会默认修改 需 model('Keyword')->isUpdate(false)->save($data, $where); 批量save() $where = array( 'dbName' => array('
阅读全文

浙公网安备 33010602011771号