Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 ydn-db 作为插件
我已经定义了索引(辅助键),我想检查我是否有任何与该索引匹配的数据。
假设我有 column3 作为索引,并且我有值“1001”如果 column3 中的值是 1001,有没有办法可以获得计数/数据或其他东西?
它应该很简单:
var kr = ydn.db.KeyRange.only(1001); db.count('store name', 'index name', kr)
或者使用更新的语法:
db.from('store name').where('index name', '=', 1001).count().done(...