字符串函数

2024年8月29日 | 1 分钟阅读

XQuery 中使用了很多字符串函数,但这里我们只使用其中精选的一部分。

XQuery 中常用的字符串操作函数列表

索引名称描述
1)string-length($string as xs:string) as xs:integer
它返回字符串的长度。
2)concat($input as xs:anyatomictype?) as xs:string它返回连接后的字符串作为输出。
3)string-join($sequence as xs:string*, $delimiter as xs:string) as xs:string它返回序列中各项的组合,各项之间用分隔符分隔。