【发布时间】:2009-12-01 21:10:41
【问题描述】:
似乎阅读文档对我没有任何帮助。考虑一个简化的例子:
declare @table1 table ( id int, parent xml )
insert @table1 values( 1, '<Root></Root>' )
declare @table2 table ( id int, guts xml )
insert @table2 values( 1, '<Guts>hi mom!</Guts>' )
select t1.parent.query('')
from @table1 t1 inner join @table2 t2 on t1.id = t2.id
将什么传递给查询函数以生成此结果?
<Root><Guts>hi mom!</Guts></Root>
【问题讨论】:
标签: sql-server xml tsql