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; 比较推荐使用第一种,第二 阅读全文
posted @ 2021-08-18 13:53 记忆有限博客长存 阅读(1018) 评论(0) 推荐(0)
摘要:save()方法可以新增数据,也可以修改数据 但是要注意,在第二次save()的时候会默认修改 需 model('Keyword')->isUpdate(false)->save($data, $where); 批量save() $where = array( 'dbName' => array(' 阅读全文
posted @ 2021-08-16 19:19 记忆有限博客长存 阅读(641) 评论(0) 推荐(0)