“T(C)"是什么意思?当我在 sql server 2008 中查询 xml 时
T(C)"是什么意思?
What's mean of the "T(C)"?
DECLARE @xml XML ='<root><id>1</id><id>2</id><id>3</id><id>4</id></root>'
SELECT
T.C.value('(text())[1]','varchar(20)')
FROM @xml.nodes('/root/id') AS T(C)
注:能不能给个专业网址,我要仔细看.
Note:can you give me a perfessional url,I want to see carefully.
非常感谢.
推荐答案
来自 MSDN Nodes()
函数语法是
节点(XQuery)作为表(列)
nodes (XQuery) as Table(Column)
表格(列)是结果行集的表名和列名.
Table(Column) Is the table name and the column name for the resulting rowset.
相关文章