当前位置:Gxlcms >
数据库问题 >
MongoDB 实现 create table tab2 as select
MongoDB 实现 create table tab2 as select
时间:2021-07-01 10:21:17
帮助过:12人阅读
2、
var temp1 = db.mtb1.find(name:"joe");
while(temp1.hasNext()) db.tab2.insert(temp1.next());
相当于sql中:create table tab2 as select * from mtb1 where name=‘joe‘;
MongoDB 实现 create table tab2 as select
标签:table ble gre god temp mon foo agg from