【问题标题】:How to apply Distinct Query in OrientDB?如何在 OrientDB 中应用 Distinct Query?
【发布时间】:2015-01-30 06:13:55
【问题描述】:

我想在 OrientDb 中使用 Distinct Query。任何人都知道如何应用它,但我想要 Distinct Query Builder。

Oriento Query

我知道:SELECT DISTINCT(name) FROM City

但我想要类似查询生成器的东西: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 ; 

【问题讨论】:

    标签: orientdb oriento


    【解决方案1】:

    你可能想要类似的东西

    db.select('distinct(name)').from('City').column('name').all()

    【讨论】:

      猜你喜欢
      • 2015-10-03
      • 2012-09-07
      • 2020-09-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-19
      相关资源
      最近更新 更多