修改密码

请输入密码
请输入密码 请输入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

v5.0
搜索
    v5.0

      NEXT

      概述

      NEXT语句串联多个语句,组成高级线性语句。

      包含NEXT语句的查询仅返回由最后一个RETURN语句生成的最终表。

      <next statement> ::= "NEXT" [ <yield clause> ] <statement>
      
      <statement> ::= <linear data-accessing statement> | <composite query statement>
      
      <linear data-accessing statement> ::=
        <simple linear data-accessing statement> <result statement>
      
      <simple linear data-accessing statement> ::= <simple data-accessing statement>...
      
      <simple data-accessing statement> ::= 
           <insert statement>
        | <set statement>
        | <remove statement>
        | <delete statement>
        | <match statement>
        | <filter statement>
        | <let statement>
        | <for statement>
        | <order by statement>
        | <limit statement>
        | <skip statement>
        | <call statement>
      
      <result statement> ::= 
        <return statement> [ <order by statement> ] [ <skip statement> ] [ <limit statement> ]
      

      详情

      • NEXT语句之前必须有一个RETURN语句,以便将待引用的变量传递给NEXT后面的语句。
      • YIELD从句可用来选择和重命名变量,以供后续查询使用。

      示例图集

      以下示例根据该图集运行:

      在空图集中运行以下语句创建示例图集:

      INSERT (rowlock:User {_id: 'U01', name: 'rowlock'}),
             (brainy:User {_id: 'U02', name: 'Brainy'}),
             (purplechalk:User {_id: 'U03', name: 'purplechalk'}),
             (mochaeach:User {_id: 'U04', name: 'mochaeach'}),
             (lionbower:User {_id: 'U05', name: 'lionbower'}),
             (c01:Club {_id: 'C01'}),
             (c02:Club {_id: 'C02'}),
             (rowlock)-[:Follows]->(brainy),
             (mochaeach)-[:Follows]->(brainy),
             (purplechalk)-[:Follows]->(mochaeach),
             (purplechalk)-[:Follows]->(lionbower),
             (brainy)-[:Joins {memberNo: 1}]->(c01),
             (lionbower)-[:Joins {memberNo: 2}]->(c01),
             (mochaeach)-[:Joins {memberNo: 9}]->(c02)
      

      基本用法

      本条查询返回的用户被U03关注,同时是C01的成员:

      MATCH ({_id: "C01"})<-[:Joins]-(u1:User)
      RETURN u1
      
      NEXT
      
      MATCH ({_id: "U03"})-[:Follows]->(u2:User)
      WHERE u2 = u1
      RETURN u2
      

      结果:u2

      _id _uuid schema
      values
      U05 Sys-gen User {name: "lionbower"}

      使用分组结果

      本条查询返回会员数最多的俱乐部中各用户的名字:

      MATCH (c:Club)<-[:Joins]-()
      RETURN c, count(c) AS cnt GROUP BY c
      ORDER BY cnt DESC LIMIT 1
      
      NEXT
      
      MATCH (c)<-[:Joins]-(u)
      RETURN collect_list(u.name)
      

      结果:

      collect_list(u.name)
      ["Brainy","lionbower"]

      使用Using Aggregated Result

      本条查询插入从U01指向C01的新边Joins,并将memberNo属性设为下一个最大值:

      MATCH ({_id: "C01"})<-[e1:Joins]-()
      RETURN max(e1.memberNo) AS maxNo
      
      NEXT
      
      MATCH (u {_id: "U01"}), (c {_id: "C01"})
      INSERT (c)<-[e2:Joins {memberNo: maxNo + 1}]-(u)
      RETURN e2
      

      结果:e2

      _uuid
      _from
      _to
      _from_uuid
      _to_uuid
      schema
      values
      Sys-gen U01 C01 UUID of U01 UUID of C01 Joins {memberNo: 3}

      NEXT YIELD

      本条查询用户purplechalk关注的用户所在的社团:

      LET name = "purplechalk"
      MATCH (:User {name: name})-[:Follows]->(u:User)
      RETURN *
      
      NEXT YIELD u
      
      MATCH (u)-[:Joins]->(c:Club)
      RETURN collect_list(c._id)
      

      结果:

      collect_list(c)
      ["C01","C02"]
      请完成以下信息后可下载此书
      *
      公司名称不能为空
      *
      公司邮箱必须填写
      *
      你的名字必须填写
      *
      你的电话必须填写
      *
      你的电话必须填写