1.临时表 表名#temp if object_id('tempdb.#temp') is not null select 'exist' 2.普通表 表名Temp if exists(select * from sysobjects where id = object_id(N'[dbo].[Temp]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) select 'exist'