从mongodb数据库中删除表
我对mongodb真的很陌生。我想在mongodb数据库中的一个表中查看数据。我尝试使用从mongodb数据库中删除表,mongodb,command,putty,Mongodb,Command,Putty,我对mongodb真的很陌生。我想在mongodb数据库中的一个表中查看数据。我尝试使用db.table\u name.removedb.table\u name.drop,但没有任何效果。而且反应也很奇怪 function () { if (arguments.length > 0) { throw "drop takes no argument"; } this.resetIndexCache(); var ret = this._db.runCommand({drop:thi
db.table\u name.remove
db.table\u name.drop
,但没有任何效果。而且反应也很奇怪
function () {
if (arguments.length > 0) {
throw "drop takes no argument";
}
this.resetIndexCache();
var ret = this._db.runCommand({drop:this.getName()});
if (!ret.ok) {
if (ret.errmsg == "ns not found") {
return false;
}
throw "drop failed: " + tojson(ret);
}
return true;
}
所以请告诉我完全删除表的命令 您的语法错误,请在删除后使用()。响应(结果)应为真或假。有关更多信息,请参阅