原文:sql中判断是否存在 数据库、表、存储过程、函数

判断数据库是否存在if exists select from sys.databases where name 数据库名 drop database 数据库名 判断表是否存在if exists select from sysobjects where id object id N 表名 and OBJECTPROPERTY id, N IsUserTable drop table 表名 判断存储过 ...

2017-04-06 14:33 0 7203 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM