By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
1 rows affected
1 rows affected
Msg 547 Level 16 State 0 Line 1
The INSERT statement conflicted with the CHECK constraint "CK__test__35BCFE0A". The conflict occurred in database "fiddle_440e019e5d3d412583c4ab74dcc4d474", table "dbo.test".
Msg 3621 Level 0 State 0 Line 1
The statement has been terminated.
Msg 547 Level 16 State 0 Line 1
The INSERT statement conflicted with the CHECK constraint "CK__test__35BCFE0A". The conflict occurred in database "fiddle_440e019e5d3d412583c4ab74dcc4d474", table "dbo.test".
Msg 3621 Level 0 State 0 Line 1
The statement has been terminated.
1 rows affected
1 rows affected
NAME | REV | ID | PI |
---|---|---|---|
A | 0 | 1 | PA001 |
A | 1 | 1 | PA001 |
A | 1 | 2 | PA002 |
A | 1 | 999 | PA999 |