这句sql是什么意思,能不能逐字解释啊if db_id(N'test') is not null drop database test go

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/11 05:19:24
这句sql是什么意思,能不能逐字解释啊if db_id(N'test') is not null drop database test go

这句sql是什么意思,能不能逐字解释啊if db_id(N'test') is not null drop database test go
这句sql是什么意思,能不能逐字解释啊if db_id(N'test') is not null drop database test go

这句sql是什么意思,能不能逐字解释啊if db_id(N'test') is not null drop database test go
if db_id(N'test') is not null -- db_id(N'test') 根据名称获取数据库ID,
drop database test
go
如果数据库存在,则drop掉数据库.