sql server 判断是否存在数据库,表,列,视图。。。。(注:转载)
1 判断数据库是否存在if exists (select * from sys.databases where name = '数据库名') drop database [数据库名] 2 判断表是否存在if exists (select * from sysobjects where id = object_id(N'[表名]') and OBJECTPROPERTY(i
转载
2013-04-12 09:28:41 ·
436 阅读 ·
0 评论