16-练习
8.12.3 练习
1.编写一个MongoDB shell脚本,使用方法insert()至少将两个新单词插入到集合word_stats中。
2.编写一个MongoDB shell脚本,使用方法update()给练习1中插入的单词添加值为exercise的字段category。
3.编写一个MongoDB shell脚本,检索字段category的值exercise的单词,并使用方法remove()删除它们。
1.编写一个MongoDB shell脚本,使用方法insert()至少将两个新单词插入到集合word_stats中。
2.编写一个MongoDB shell脚本,使用方法update()给练习1中插入的单词添加值为exercise的字段category。
3.编写一个MongoDB shell脚本,检索字段category的值exercise的单词,并使用方法remove()删除它们。