--判断要创建临时表是否存在
If Object_Id('Tempdb.dbo.#Test') Is Not Null
    Begin
      print '存在'
    End
Else
    Begin
      print '不存在'
    End