30. Which of the following commands are data definition language (DDL) operations? Check all that apply:
题目选项
- A.db.createView()
- B.db.collection.remove()
- C.db.collection.dropIndex()
答案置信度:高
正确答案:A、C
解析语言:中文
DDL 是定义/修改数据库对象结构的操作:dropIndex 删除索引、createView 创建视图都属于 DDL,所以 A、B 正确。C 的 db.collection.remove() 删除的是文档数据,属于 DML。