以下の SQL コードで、T(C) は何を意味しますか? Tとは何ですか、Cとは何ですか?
declare @employeeData xml --this would be your XML input parameter
set @employeeData = '<employeeData>
<employee LastName="Smith" FirstName="Randolph" EmployeeID="1234567"/>
</employeeData>'
declare @xmlTable table (LastName nvarchar(255), FirstName nvarchar(255), EmployeeID int)
insert into @xmlTable (LastName, FirstName, EmployeeID)
select
C.value('@LastName','nvarchar(255)') as LastName,
C.value('@FirstName','nvarchar(255)') as FirstName,
C.value('@EmployeeID','int') as EmployeeID
from
@employeeData.nodes('/employeeData/employee') T(C)
select * from @xmlTable