Skip to content

Commit

Permalink
String writing operations (#894)
Browse files Browse the repository at this point in the history
* about string writing operations

* Update 3.string.md
  • Loading branch information
randomJoe211 authored Aug 23, 2021
1 parent 7e6d1dd commit 66b3298
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs-2.0/3.ngql-guide/3.data-types/3.string.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ nGQL支持以如下方式使用字符串:
nebula> CREATE TAG t2 (p2 STRING);
```
在写入定长字符串时,如果尝试写入的字符串超出长度限制,Nebula Graph将截断字符串,仅存入符合长度限制的部分。例如,当一个图空间的VID类型为`FIXED_STRING(8)`时,如果尝试将`A_string_with_27_characters`设置为VID,然后使用nGQL命令查询该VID,获取到的只有`A_string`。
如果尝试写入的定长字符串超出长度限制:
- 当该定长字符串为属性值时,写入会成功,Nebula Graph将截断字符串,仅存入符合长度限制的部分。
- 当该定长字符串为VID时,写入会失败,Nebula Graph将报错。
## 转义字符
Expand Down

0 comments on commit 66b3298

Please sign in to comment.