原文: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