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

判断表是否存在,存在则删除if exists (select 1 from sysobjects where id object_id(student_info) a

判断表是否存在,存在则删除
if exists (select 1 from sysobjects where id = object_id('student_info') and type = 'U')drop table student_infogo