IF EXISTS(select * from tempdb..sysobjects where id=object_id(‘tempdb..#tb‘)) BEGIN DROP TABLE #tb END
SQL判断临时表是否存在
时间: 2024-10-07 18:48:55
IF EXISTS(select * from tempdb..sysobjects where id=object_id(‘tempdb..#tb‘)) BEGIN DROP TABLE #tb END
SQL判断临时表是否存在