判断sql对象是否存在不存在创建

--创建主键IF NOT EXISTS (select name from dbo.sysobjects where xtype='PK' and parent_obj=(select id from dbo.sysobjects where name='Employee'))BEGIN ...

Thu Aug 20 03:14:00 CST 2020 0 504
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM