orientdb - 如何在OrientDB中应用Distinct Query?

标签 orientdb oriento

我想在 OrientDb 中使用不同查询。任何人都知道如何应用它,但我想要独特的查询生成器。

Oriento Query

我知道:从城市中选择 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/

相关文章:

nexus - Nexus Repository 版本 3.2.0-01 中的 OrientDB 损坏状态

javascript - SailsJS : Where to define db connection to not supported db type (orientdb)? 自定义中间件?

node.js - 为什么我们使用 ORM 或 ODM 来管理任何 graphDB?

orientdb - OrientDB 中简单选择查询的错误结果

java - OrientDB在启动时自动创建数据库

graph - OrientDB 时间序列数据

java - 运行嵌入式服务器时 OrientDb 端口范围的用途是什么?