开发者

what is wrong with my mongodb error

开发者 https://www.devze.com 2023-02-28 18:41 出处:网络
this is my code: for( var i = 1; i < 10; i++ ) db.things.save( { x:4, j:i } 开发者_开发问答); > db.things.find();

this is my code:

for( var i = 1; i < 10; i++ ) db.things.save( { x:4, j:i } 开发者_开发问答); > db.things.find();

and the error is :

Wed Apr 27 10:45:16 SyntaxError: syntax error (shell):1

what is wrong with it ,

thanks


for( var i = 1; i < 10; i++ ) db.things.save( { x:4, j:i } ); > db.things.find();
                                                             ^--- missing

You're doing redirection, but you're not redirecting FROM anything. The previous statement has been terminated by the semi-colon.

0

精彩评论

暂无评论...
验证码 换一张
取 消