修改密码

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

      WHERE

      概述

      使用语句WHERE可以过滤数据,将符合特定条件的数据保留下来,将不满足条件的舍弃。

      语法

      WHERE <conditions>
      

      详情

      • <condition>:数据过滤条件。必要时,可使用逻辑运算符&&||将过滤条件组合。逻辑运算结果为TRUE的数据才会保留。
      • 请注意,如果<condition>中引用了异源别名,则会计算其笛卡尔积。

      示例图集

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

      create().node_schema("student").node_schema("course").edge_schema("takes")
      create().node_property(@*, "name").node_property(@student, "credits_gained", int32).node_property(@course, "credits", int32).node_property(@student, "age", int32)
      insert().into(@student).nodes([{_id:"S1", name:"Jason", credits_gained:25, age:19}, {_id:"S2", name:"Lina", credits_gained:23, age:18}, {_id:"S3", name:"Eric", credits_gained:29, age:21}, {_id:"S4", name:"Emma", credits_gained:26, age:23}, {_id:"S5", name:"Pepe", credits_gained:24, age:18}])
      insert().into(@course).nodes([{_id:"C1", name:"French", credits:4}, {_id:"C2", name:"Math", credits:5}, {_id:"C3", name:"Literature", credits:5}, {_id:"C4", name:"Art", credits:2}])
      insert().into(@takes).edges([{_from:"S1", _to:"C1"}, {_from:"S2", _to:"C1"}, {_from:"S3", _to:"C1"}, {_from:"S2", _to:"C2"}, {_from:"S3", _to:"C2"}, {_from:"S4", _to:"C2"}, {_from:"S5", _to:"C2"}])
      

      无笛卡尔积运算

      find().nodes({@student}) as stu
      where stu.credits_gained > 25
      return stu.name
      

      结果:

      stu.name
      Eric
      Emma
      find().nodes({@student}) as stu
      where stu.credits_gained > 25 && stu.age > 21
      return stu.name
      

      结果:

      stu.name
      Emma

      有笛卡尔积运算

      find().nodes({@student}) as stu
      find().nodes({@course.name in ["Literature", "Art"]}) as newCrs
      where stu.credits_gained + newCrs.credits > 30
      return table(stu.name, newCrs.name, stu.credits_gained + newCrs.credits)
      

      结果:

      stu.name newCrs.name
      ADD(stu.credits_gained,newCrs.credits)
      Eric Art 31
      Eric Literature 34
      Emma Literature 31
      请完成以下信息后可下载此书
      *
      公司名称不能为空
      *
      公司邮箱必须填写
      *
      你的名字必须填写
      *
      你的电话必须填写
      *
      你的电话必须填写