我需要把这张桌子翻过来:
RecID Date Time FirstName LastName
6 5/28/2013 9:50:07 AM Jenny Welhberg
进入这个:
Column Value
RecID 6
Date 5/28/2013
Time 9:50:07 AM
FirstName Jenny
LastName Welhberg
我有:
SELECT COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'tablename'
select * from tablename where recid=6
另请注意,我正在为该报告使用 SQL Server 2000。