if not exists(select * from tempdb..sysobjects where id=object_id('tempdb..##DateL')) Begin
CREATE TABLE ##DateL (adate datetime,)
End
提示错误:数据库中已存在名为 '##DateL' 的对象。
应该是if not exists这句没有查到之前建立的临时表##DateL请问怎么解决,怎么能查询到已存在的表##DateL