我有這個疑問如何在SQL Server 2005中讀取xml?
WITH XMLNAMESPACES (DEFAULT 'http://www.w3.org/2005/Atom')
select
cast(idsku as int) idsku,
cast(entregado as int) entregado from #final1 final FOR XML AUTO, ROOT ('clientesxml'), ELEMENTS
這回
<clientesxml xmlns="http://www.w3.org/2005/Atom">
<final>
<idsku>191</idsku>
<entregado>159</entregado>
</final>
</clientesxml>
我的問題我怎麼創建一個存儲過程,它讀取XML返回,並將其轉換爲#tempTable
?
您是否希望將數據插入回原來的格式? –