sqlserver中判断表或临时表是否存在
if
object_id(N'tablename',N'U') is not null
print '存在'
else
print '不存在'
if
object_id(N'TEMP_TBL',N'U') is not null
print '存在'
else
print '不存在'
http://www.cnblogs.com/yugen/archive/2010/07/25/1784749.html
if
object_id(N'tablename',N'U') is not null
print '存在'
else
print '不存在'
if
object_id(N'TEMP_TBL',N'U') is not null
print '存在'
else
print '不存在'
http://www.cnblogs.com/yugen/archive/2010/07/25/1784749.html