From 15c3bc840f20e5538ec5eb837faeb4c09d5f4a43 Mon Sep 17 00:00:00 2001 From: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> Date: Wed, 25 May 2022 11:26:07 +0800 Subject: [PATCH] Update 9.type-conversion.md --- docs-2.0/3.ngql-guide/3.data-types/9.type-conversion.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs-2.0/3.ngql-guide/3.data-types/9.type-conversion.md b/docs-2.0/3.ngql-guide/3.data-types/9.type-conversion.md index ebe7f8f3f41..103b065d73c 100644 --- a/docs-2.0/3.ngql-guide/3.data-types/9.type-conversion.md +++ b/docs-2.0/3.ngql-guide/3.data-types/9.type-conversion.md @@ -9,6 +9,7 @@ | toBoolean() | 将字符串转换为布尔。 | | toFloat() | 将整数或字符串转换为浮点数。 | | toInteger() | 将浮点或字符串转换为整数。| +| toString() | 将非复合类型的数据,例如数字、布尔值等,转换为字符串。| | toSet() |将列表或集合转换为集合。| | type() | 返回字符串格式的关系类型。 | @@ -72,6 +73,13 @@ nebula> MATCH (n:player) \ | 2 | +-------+ +nebula> RETURN toString(9669) AS int2str, toString(null) AS null2str; ++---------+----------+ +| int2str | null2str | ++---------+----------+ +| "9669" | __NULL__ | ++---------+----------+ + nebula> RETURN toSet(list[1,2,3,1,2]) AS list2set; +-----------+ | list2set |