CHECK CONSTRAINT on multiple columns

后端 未结 3 1081
忘掉有多难
忘掉有多难 2020-11-30 07:36

I use SQL Server 2008

I use a CHECK CONSTRAINT on multiple columns in the same table to try to validate data input.

I receive an error:

3条回答
  •  广开言路
    2020-11-30 08:24

    You can simply apply your validation in a trigger on the table especially that either way the operation will be rolled back if the check failed.

提交回复
热议问题