Can we add multiple CONSTRAINTs on a single column in a table?
- Posted by Sqltimes
- On October 28, 2012
- 0 Comments
Yes, it is allowed to add multiple column level CONSTRAINTs to the same column in a table. All the CONSTRAINTs are checked for every INSERT, UPDATE operation and all must be satisfied for the INSERT/UPDATE operation to be successful. Following is an example (DBA.SampleTable) with a column (Col2) with 3 constraints. Default: DF_SampleTable_ID Foreign Key : […]
Read More