1
我有一个平坦表,我试图变成一个XML输出。SQl到XML创建节点
我需要地址部分出现在一个单独的节点。
Select ID,AddressLine1,PostCode,Price,Name from Property
我需要这看起来像
<Property>
<ID> 1 <ID>
<Address>
<Line1>10 Downing Street</Line1>
<PostCode>SW11SW</Postcode>
</Address>
<Price> 1,000,000,000 <Price>
<Name> My Next House<Name>
</Property>
任何想法如何来实现地址的一部分?
感谢 SP
这是SQL Server的? – podiluska