How to check if a Constraint exists in Sql server?

前端 未结 13 1963
无人及你
无人及你 2020-11-29 15:03

I have this sql:

ALTER TABLE dbo.ChannelPlayerSkins
    DROP CONSTRAINT FK_ChannelPlayerSkins_Channels

but apparently, on some other databa

相关标签:
13条回答
  • 2020-11-29 15:50
    IF (OBJECT_ID('FK_ChannelPlayerSkins_Channels') IS NOT NULL)
    
    0 讨论(0)
提交回复
热议问题