#TP数据库操作bug代码 Db不能引用到一半 然后 去链接其他库 再继续操作
Db::table('xx')->insert([
'name' => Db::connect($mongo_db)->name($mongo_sheet)->where('id',1)->value('name'),
]);
本来想insert 默认库.xx表
最后执行的insert 是在connect($mongo_db)数据库里insert了
然后提示表字段不存在 报错
有喜欢写简约代码的人注意啦,很容易引发BUG