【文件属性】:
文件名称:SQL操作语句
文件大小:31KB
文件格式:ZIP
更新时间:2015-03-08 07:01:47
SQL 2008 语句
一、 创建数据文件
判断数据库是否存在,存在删除数据库
if exists (select * from master.dbo.sysdatabases where dbid=DB_ID('数据库名'))
drop database数据库名
或
if DB_ID('数据库名') is not null
drop database 数据库名
GO