现在的位置: 首页 > 综合 > 正文

判断表是否存在,存在则删除表

2011年01月19日 ⁄ 综合 ⁄ 共 121字 ⁄ 字号 评论关闭
if exists (select 1 from sysobjects where id = object_id('psintroduction') and type = 'U')
drop table psintroduction
go
要判断的表
psintroduction

抱歉!评论已关闭.