SELECT stuff ( ( select ','+[name] from syscolumns Where ID=OBJECT_ID('表名') for xml path('') ), 1, 1, '' )
Select name + ',' from syscolumns Where ID=OBJECT_ID('表名');