修改密码

请输入密码
请输入密码 请输入8-64长度密码 和 email 地址不相同 至少包括数字、大写字母、小写字母、半角符号中的 3 个
请输入密码
提交

修改昵称

当前昵称:
提交

申请证书

证书详情

Please complete this required field.

  • Ultipa Graph V4

Standalone

Please complete this required field.

Please complete this required field.

服务器的MAC地址

Please complete this required field.

Please complete this required field.

取消
申请
ID
产品
状态
核数
申请天数
审批时间
过期时间
MAC地址
申请理由
审核信息
关闭
基础信息
  • 用户昵称:
  • 手机号:
  • 公司名称:
  • 公司邮箱:
  • 地区:
  • 语言:
修改密码
申请证书

当前未申请证书.

申请证书
Certificate Issued at Valid until Serial No. File
Serial No. Valid until File

Not having one? Apply now! >>>

ProductName CreateTime ID Price File
ProductName CreateTime ID Price File

No Invoice

搜索
    中文

      ORDER BY

      ORDER BY 可以调整别名中行与行之间的顺序。

      语法:ORDER BY <expression> <string>, <expression> <string>, ...
      参数:

      • <expression>:排序依据,多个依据必须同源,从左到右进行逐级排序
      • <string>:排序方式,'ASC' 或 'DESC',大小写均可,省略时为 'ASC' 升序

      例如,对一步路径 path 进行排序,先按照终点 n 的半径降序排列,半径相同的再按照终点 n_uuid 升序排列:

      n([4, 2]).e().n(as n) as path
      order by n.radius desc, n
      return path
      

      示例图集:(以下示例将在本图基础上运行)

      在空图集中依次运行以下各行代码以创建该图数据:

      create().node_schema("student").node_schema("course")
      create().node_property(@*, "name").node_property(@student, "age", int32).node_property(@course, "credit", int32)
      insert().into(@student).nodes([{_id:"S001", _uuid:1, name:"Jason", age:25}, {_id:"S002", _uuid:2, name:"Lina", age:23}, {_id:"S003", _uuid:3, name:"Eric", age:24}, {_id:"S004", _uuid:4, name:"Emma", age:26}, {_id:"S005", _uuid:5, name:"Pepe", age:24}])
      insert().into(@course).nodes([{_id:"C001", _uuid:6, name:"French", credit:4}, {_id:"C002", _uuid:7, name:"Math", credit:5}])
      insert().into(@default).edges([{_uuid:1, _from_uuid:1, _to_uuid:6}, {_uuid:2, _from_uuid:2, _to_uuid:6}, {_uuid:3, _from_uuid:3, _to_uuid:6}, {_uuid:4, _from_uuid:2, _to_uuid:7}, {_uuid:5, _from_uuid:3, _to_uuid:7}, {_uuid:6, _from_uuid:4, _to_uuid:7}, {_uuid:7, _from_uuid:5, _to_uuid:7}])
      

      分组、排序

      示例:查询 1 步路径 课程-学生,按课程分组统计组内学生数量,再按学生数量降序排列

      n({@course} as a).e().n({@student})
      group by a
      with count(a) as b
      order by b desc 
      return table(a.name, b)
      

      | a.name | b |
      |--------|---|
      | Math   | 4 |
      | French | 3 |
      

      多级排序

      示例:查询 1 步路径 课程-学生,按课程 credit 升序排列,再按学生 age 降序排列,携带全部属性

      n({@course} as a).e().n({@student} as b) as p
      order by a.credit, b.age desc 
      return p{*}
      

      French <---- Jason
      French <---- Eric
      French <---- Lina
      Math <---- Emma
      Math <---- Eric
      Math <---- Pepe
      Math <---- Lina
      
      请完成以下信息后可下载此书
      *
      公司名称不能为空
      *
      公司邮箱必须填写
      *
      你的名字必须填写
      *
      你的电话必须填写
      *
      你的电话必须填写