摘要:USE master;GOIF DB_ID (N'MicroblogDB') IS NOT NULL--N '.... '代表是Unicode 字符串/*删除数据库 数据库名一般放在master的sysdatabases中。 方法一 用exists(存在) use master go if exists(select * from sysdatabases where name = '数据库名') drop database 数据库名 go 方法二 db_id存在sqlserver2000以后的版本 use master go if db_id(
阅读全文