if OBJECT_ID(N'tempdb.dbo.#临时表名') IS NOT NULL print '存在' if OBJECT_ID(N'tempdb.dbo.#临时表名') IS NULL print '不存在'