概述
rtrim()
函数去掉字符串末尾的所有空格,并返回修改后的字符串。
语法
rtrim(str)
参数 | 类型 | 描述 |
---|---|---|
str |
String | 要修改的字符串 |
返回值类型:String
结果示例
return rtrim("cloud ")
结果:cloud
使用示例
将一个输入内容结尾的空格去掉后,再将其存储到数据库中。
with "johndoe@gmail.com " as input
insert().into(@user).nodes({email: rtrim(input)})