clear markdown compare help donate comments/suggestions/bugs a leap of faith? bible365 diddy dollings
clear markdown donate comments/suggestions/bugs a leap of faith? bible365 diddy dollings
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0. 462220 distinct fiddles created so far.

CREATE TABLE [dbo].[constraintdemo]( [constraintfield] [int] NULL ) ON [PRIMARY]
 hidden batch(es)


ALTER TABLE [dbo].[constraintdemo] WITH CHECK ADD CONSTRAINT [CK_constraintdemo] CHECK (([constraintfield]>(0)))
 hidden batch(es)


INSERT INTO constraintdemo (constraintfield) VALUES (-1)
Msg 547 Level 16 State 0 Line 1 The INSERT statement conflicted with the CHECK constraint "CK_constraintdemo". The conflict occurred in database "fiddle_8925daa30350488d90abe37bd0b29570", table "dbo.constraintdemo", column 'constraintfield'. Msg 3621 Level 0 State 0 Line 1 The statement has been terminated.
 hidden batch(es)