在SQL语句中如何检查数据库是否存在?rt[解决办法]if exists(select 1 from master..sysdatabases where name= '库名 ') print '存在 ' else print '不存在 '