select name from tempdb.dbo.syscolumns where id=object_id( "#TempTB")
if col_length("tempdb.dbo.#TempTB","columnName") is not nullprint "存在"elseprint "不存在"