XQuery字符串函数和序列函数
发布时间:2024-01-01 00:12:41 所属栏目:教程 来源:DaWei
导读: XQuery字符串函数
下表列出了XQuery提供的常用字符串操作函数。
函数 描述
string-length($string as xs:string) as xs:integer 返回字符串的长度。
concat($input as xs:any
下表列出了XQuery提供的常用字符串操作函数。
函数 描述
string-length($string as xs:string) as xs:integer 返回字符串的长度。
concat($input as xs:any
XQuery字符串函数 下表列出了XQuery提供的常用字符串操作函数。 函数 描述 string-length($string as xs:string) as xs:integer 返回字符串的长度。 concat($input as xs:anyAtomicType?) as xs:string 返回连接的字符串。 string-join($sequence as xs:string*, $delimiter as xs:string) as xs:string 返回由分隔符分隔的序列中的数据项组合。 XQuery序列函数 下表列出了XQuery提供的常用序列函数。 序号 名称 描述 1 count($seq as item()*) 计算序列中的项目数量。 2 sum($seq as item()*) 返回序列中数据项的总和。 3 avg($seq as item()*) 返回序列中数据项的平均值。 4 min($seq as item()*) 返回序列中数据项的最小值。 5 max($seq as item()*) 返回序列中数据项的最大值。 6 distinct-values($seq as item()*) 返回序列中的选择不同数据项。 7 subsequence($seq as item()*, $startingLoc as xs:double, $length as xs:double) 返回提供序列的子集。 8 insert-before($seq as item(), $position as xs:integer, $inserts as item()) 在序列中插入数据项目。 9 remove($seq as item()*, $position as xs:integer) 从序列中删除数据项。 10 reverse($seq as item()*) 返回反转序列中数据项。 11 index-of($seq as anyAtomicType()*, $target as anyAtomicType()) 将索引作为整数返回,以指示序列中数据项的可用性。 12 last() 在谓词表达式中使用时,返回序列的最后一个元素。 13 position() 在FLOWR表达式中用于获取序列中项的位置。 (编辑:晋中站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐