SELECT
(case when a.colorder=1 then d.name else '' end) N'表名',
a.name N'字段名'
FROM syscolumns a
inner join sysobjects d
on a.id=d.id and d.xtype='U' and d.name<>'dtproperties'
where d.name = '表名'
order by object_name(a.id),a.colorder
SELECT
(case when a.colorder=1 then d.name else '' end) N'表名',
a.name N'字段名'
FROM syscolumns a
inner join sysobjects d
on a.id=d.id and d.xtype='U' and d.name<>'dtproperties'
where d.name = '表名'
order by object_name(a.id),a.colorder