-1
我有這個xml,我想將它插入臨時表中,包括單個行中的<salesorpurchase>
節點中的值。這可能嗎?在SQL Server 2008中刪除XML子節點元素
或者你能告訴我如何刪除<SalesOrPurchase>
而不刪除它的內部文本?
<ItemServiceRet>
<ListID>80000012-1302270176</ListID>
<EditSequence>1302270195</EditSequence>
<Name>2nd Floor Shop</Name>
<FullName>2nd Floor Shop</FullName>
<IsActive>true</IsActive>
<SalesOrPurchase>
<Price>0.00</Price>
<AccountRef>
<ListID>800000B3-1302260225</ListID>
<FullName>Rent Income:Rent income 2ND FL:2nd Floor Shops</FullName>
</AccountRef>
</SalesOrPurchase>
</ItemServiceRet>
<ItemServiceRet>
<ListID>80000002-1277187768</ListID>
<EditSequence>1463398389</EditSequence>
<Name>VAT 16%</Name>
<FullName>VAT 16%</FullName>
<IsActive>true</IsActive>
<SalesOrPurchase>
<PricePercent>16.00</PricePercent>
<AccountRef>
<ListID>6B0000-1224749077</ListID>
<FullName>Vat account</FullName>
</AccountRef>
</SalesOrPurchase>
</ItemServiceRet>
不要忘記更換在我的例子使用具有適當的值的數據類型,最大lenght,精度和標度。 –