能否查询得到全局临时表的所有列名?
如题。能否得到全局临时表的所有列名?如:
- SQL code
select * from syscolumns where id=object_id(N'Tempdb.dbo.##0123') and ( xtype=62 or xtype=106 )
[解决办法]
- SQL code
select * from tempdb.dbo.syscolumns where id=object_id('tempdb.dbo.##tb') 发布时间: 2012-01-21 21:31:43 作者: rapoo
能否查询得到全局临时表的所有列名?
如题。能否得到全局临时表的所有列名?如:
select * from syscolumns where id=object_id(N'Tempdb.dbo.##0123') and ( xtype=62 or xtype=106 )
select * from tempdb.dbo.syscolumns where id=object_id('tempdb.dbo.##tb')