摘要:
删除用户表 1、select 'DROP TABLE '+name from sysobjects where type = 'U'删除视图 2、select 'DROP VIEW '+name from sysobjects where type = 'V' 删除存储过程 3、select 'DR 阅读全文
摘要:
(1):查询一个数据库中是否存在某个表(两种方式):假设表名为table_name if Exists(select * from sysobjects where name='table_name') drop table table_name 或 if object_id('table_name 阅读全文