读书人

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

发布时间: 2012-09-24 13:49:41 作者: rapoo

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

读书人网 >其他数据库

热点推荐