if DB_ID(‘testdb‘) is not null -- 如果这个数据库已经存在了
drop database testdb;
create database testdb;
if OBJECT_ID(‘dbo.user‘,‘u‘) is not null
drop table dbo.user;
create tablet dbo.user(......);
SQL Server 判断数据库是否存在,表是否存在
标签:
本文系统来源:http://www.cnblogs.com/JiangLe/p/4605067.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!