XQuery字符串函数和序列函数
发布时间:2023-12-27 10:08:25 所属栏目:教程 来源: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表达式中用于获取序列中项的位置。 (编辑:重庆站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 最新市场分析,蓝牙正在成为IoT行业一股重要推动力
- VR游戏《Spaceteam VR》将兼容智能手机和VR头显,实现跨平台
- SparkSQL访问Hive遇到的问题及解决方法
- “软硬兼施”的3Glasses,移动端3Box助手IOS已上线
- 爱奇艺发布奇遇2Pro 6DoF VR体感游戏机 3月23日起在各电商平
- 西安20所学校获赠百套百度 VR一体机,虚拟现实技术赋能教育
- 跑虚拟机也比Surface强,苹果M1“一统江湖”?
- 日本5G商用正式开启,软银发布“追加1000日元”的5G资费
- 在VR世界里体验《寂静岭》与“洛氏恐怖”:《Lie Beneath》
- 全新Oculus Quest手柄控制器充电站在Kickstarter平台发起众
推荐文章
站长推荐