摘要: --查看对象是否已经存在 --数据库是否存在 --if exists (select * from sys.databases where name = ’数据库名’) -- drop database [数据库名] if exists(select * from sys.databases where name='FGM_POS') print '存在' --drop database [数据库名] --表是否存在 --if exists (select * from sysobjects where id = object_id(N’[表名]’) and.. 阅读全文
posted @ 2012-05-31 22:07 fighter 阅读(4828) 评论(0) 推荐(2) 编辑