Skip to content

Commit

Permalink
Update 1.overview.md
Browse files Browse the repository at this point in the history
  • Loading branch information
whitewum committed Sep 18, 2021
1 parent 6456bbb commit ae8d7b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs-2.0/3.ngql-guide/1.nGQL-overview/1.overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ nebula> CREATE TAG player(name string, age int);
在[Nebula Graph Issues](https://github.com/vesoft-inc/nebula/issues?q=is%3Aissue+is%3Aopen+label%3Aincompatible)中已经列出已知的多处不兼容项。如果发现这种类型的新问题,请提交问题并附带`incompatible`标签。在本文搜索"compatibility"或者“兼容性”查看具体不兼容细节。


### nGQL和openCypher 9的主要差异有哪些
### nGQL 和 openCypher 9的 主要差异有哪些

|类别| openCypher 9 | nGQL |
| :--- | :--- |:--- |
|Schema| 弱Schema | 强Schema |
|相等运算符| `=` | `==` |
|数学求幂| `^` | 使用`pow(x, y)`替代`^`|
|边Rank| 无此概念 |`@rank`设置。 |
|语句|-|不支持 openCypher 9 的所有 DML 语句(如`CREATE``MERGE`等),不支持所有的 DCL, 和支持部分 `MATCH` 语法和函数(不支持`OPTIONAL MATCH`,不支持多`MATCH`)。 |
|语句|-|不支持 openCypher 9 的所有 DML 语句(如`CREATE``MERGE`等),不支持所有的 DCL, 和支持部分 `MATCH` 语法和函数(不支持`OPTIONAL MATCH`,不支持多`MATCH`,不支持 `WHERE` 中使用图 pattern)。 |
|语句文本换行 | 换行符 | `\` + 换行符 |
|Label与Tag是不同的概念| Label用于寻找点(点的索引)。 | Tag用于定义点的一种类型及相应的属性,无索引功能。 |
| 预编译与参数化查询 | 支持 | 不支持 |
Expand Down

0 comments on commit ae8d7b4

Please sign in to comment.