我想在 OrientDb 中使用不同查询。任何人都知道如何应用它,但我想要独特的查询生成器。
我知道:从城市中选择 DISTINCT(name)
但我想要类似的查询生成器:db.select().distinct(name).from(City)
//Right Select Query Builder
db.select().from('City').where({status: 'true'}).all()
并且
如何在下面的查询中应用对象?
var abc = {Country : 'India'};
'SELECT DISTINCT(name) FROM City where' + abc ;
最佳答案
你可能想要类似的东西
db.select('distinct(name)').from('城市').column('name').all()
关于orientdb - 如何在OrientDB中应用Distinct Query?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28230220/