原文:sqlserver 各种判断是否存在(表名、函数、存储过程等)

库是否存在 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 OBJECTPROPERTY id ...

2016-12-15 11:28 0 22981 推荐指数:

查看详情

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