XQuery string-concat Function
XQuery string-concat Function
The concat function is used to concatenate various strings.
Syntax
concat($input as xs:anyAtomicType?) as xs:string
Input Parameters
$input
is one or more inputs separated by comma.
Example
XQuery Expression
let $bookTitle := "Learn XQuery"
let $updatedTitle := concat($bookTitle,",price: 50$")
return
<result>
<title>{$updatedTitle}</title>
</result>
Output
<result>
<title>Learn XQuery,price: 50$</title>
</result>