gpt4 book ai didi

xml - 如何在 XQuery 中打开字符串?

转载 作者:数据小太阳 更新时间:2023-10-29 01:41:19 26 4
gpt4 key购买 nike

我有一个以字符串形式传入的外部变量,我想对其进行转换/大小写。我如何在 xquery 中执行此操作?

最佳答案

从 XQuery 1.1 开始,使用开关:

http://www.w3.org/TR/xquery-11/#id-switch

switch ($animal) 
case "Cow" return "Moo"
case "Cat" return "Meow"
case "Duck" return "Quack"
default return "What's that odd noise?"

关于xml - 如何在 XQuery 中打开字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/85761/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com