mongodb for循环插入数据

 

for (var i = 1; i <= 10; i++)

{

  db.test.insert( { x : i , name: "Liqing" , class:"1120", sex:"woman"} )

}

文章来自:https://www.cnblogs.com/luchi88/p/9460726.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3