字符串字面值
字符串由一串字节或字符组成,并由一对单引号 (‘) 或双引号 (“) 包装。
nebula> YIELD 'a string';
nebula> YIELD "another string";
一些转义字符 (\) 已被支持,如下表所示:
转义字符 | 对应的字符 |
---|---|
\’ | 单引号 (‘) |
\” | 双引号 (“) |
\t | 制表符 |
\n | 换行符 |
\b | 退格符 |
\ | 反斜杠 () |
示例:
nebula> YIELD 'This\nIs\nFour\nLines';
========================
| "This
Is
Four
Lines" |
========================
| This
Is
Four
Lines |
------------------------
nebula> YIELD 'disappearing\ backslash';
============================
| "disappearing backslash" |
============================
| disappearing backslash |
----------------------------
当前内容版权归 Nebula Graph 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Nebula Graph .