【发布时间】:2022-12-27 21:11:08
【问题描述】:
I have a quite complex query which should generate XML. Problem is, for each row of this query, one of the values from select should be used as tag name. For example if the row is like this:
columna | columnb | columnc
value11 | value12 | value13
value21 | value22 | value23
xml would contain something like this, for example:
<value11> value12 </value11>
so one table value is used as tag name.
Is that possible?
【问题讨论】:
标签: sql sql-server xml tags