parse xml in sql
摘要:
DECLARE @table TABLE ( yourXML XML )DECLARE @xml XMLSET @xml = ( SELECT TOP 10 * FROM sys.objects FOR XML RAW, TYPE )-- Spin up some dummy XMLINSERT INTO @table SELECT @xmlSELECT t.*, r.c.query('.'), r.c.value('@name', 'SYSNAME') AS tableName, r.c.value('@object_id', 阅读全文
posted @ 2012-08-23 17:48 arui.wong 阅读(99) 评论(0) 推荐(0) 编辑