我想动态创建一个元素,我正在尝试下面的查询,但它给了我这个错误:SQL16031N XQuery language feature using syntax "element {$first} { "Crockett" }, element last {"Johnson" } } })" is not supported
你能帮帮我吗?
XQUERY
let $first := concat('first','')
return (element book {
attribute isbn {"isbn-0060229357" },
element title { "Harold and the Purple Crayon"},
element author {
element {$first} { "Crockett" },
element last {"Johnson" }
}
})