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

判断表是否存在 select from sysobjects where id object id 表名 and OBJECTPROPERTY id, N IsUserTable 判断视图是否存在 select table name from information schema.views where table name 视图名 或者 SELECT FROM dbo.sysobjects W ...

2019-07-24 10:21 0 3735 推荐指数:

查看详情

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