数字集合名称删除 [英] Numeric Collection Name Remove

查看:61
本文介绍了数字集合名称删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从MongoDB中删除数字集合?

How can you drop a numeric collection from MongoDB?

PRIMARY> db.123456789011.remove({});
Tue Mar 20 08:42:51 SyntaxError: missing ; before statement (shell):1

PRIMARY> db.123456789011.drop({});
Tue Mar 20 08:43:13 SyntaxError: missing ; before statement (shell):1

是通过PHP脚本创建的..现在我不知道如何删除它..

Was created through a PHP script.. now I can't figure out how to remove this..

有想法吗?

谢谢

推荐答案

这应该有效:

   db["123456789011"].drop()

这篇关于数字集合名称删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆