sql 判断数据库,表,存储过程等是否存在的代码
代码:--库是否存在if exists(select * from master..sysdatabases where name=N"库名")print "exists"elseprint "not exists"----------------- 判断要创建的表名是否存在if exists (select * from dbo.sysobjects where id = object_id(N"[dbo].[表名]") and OBJECTPROPER...