开发者

what is wrong with my mongodb error

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜