获取临时表中所有列名
select name from tempdb.dbo.syscolumns where id=object_id( '#TempTB')
判断临时表中是否存在指定列名
if col_length('tempdb.dbo.#TempTB','columnName') is not null print '存在'else print '不存在'
上一篇:如何实现Mysql数据库性能优化
下一篇:SpringSecurity中怎么实现登录添加验证码