获取临时表的列名 无 create table #sometmptbl(col1 int,col2 varchar(20),col3 datetime)goselect * from tempdb.sys.columns where object_id =object_id('tempdb..#sometmptbl');
获取临时表的列名 create table #sometmptbl(col1 int,col2 varchar(20),col3 datetime)goselect * from tempdb.sys.columns where object_id =object_id('tempdb..#sometmptbl');