mssql對象的查詢

1 判斷數據庫是否存在 if exists (select * from sys.databases where name = '數據庫名') drop database [數據庫名] 2 判斷表是否存在 if exists (select * from sysobjects where id = object_id(N'[表名]') and OBJECTPROPERTY(id, N'Is
相關文章
相關標籤/搜索