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.
这篇关于“T(C)"是什么意思?当我在 sql server 2008 中查询 xml 时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!