NumberLong(1),
NumberInt(1),
插入方法是一样的 为什么一个是64位 一个是32位好像我查询的时候用(int)$value 查询不到这个64位的如何能解决
ringa_lee
int and long are two different types in bson. If you use db.xxx.find({"value": 1}), you can find them both
int and long are two different types in bson. If you use db.xxx.find({"value": 1}), you can find them both