数据库中if OBJECT_ID ('dbo.table_test_6_1','u') is not null drop table table_test_6_1判断是否存在该

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/31 15:23:25

数据库中if OBJECT_ID ('dbo.table_test_6_1','u') is not null drop table table_test_6_1判断是否存在该

这个语句是判断dbo.table_test_6_1这个东西是否存在,u是对象的类型,代表表,如果是存储过程的话就是p,is not null就是如果存在的话就drop(删除)