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

库是否存在 if exists select from master..sysdatabases where name N 库名 print exists else print not exists 判断要创建的表名是否存在 if exists select from dbo.sysobjects where id object id N dbo . 表名 and OBJECTPROPERTY ...

2013-01-24 11:05 2 14743 推荐指数:

查看详情

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