I wanted to create an outline constraint for an alter key(NOT NULL + UNIQUE), but I think the NOT NULL constraint can't be placed outline, therefore, I think I have to options:
- Outline constraint:
CHECK(attr IS NOT NULL)
- In-line constraint
NOT NULL
+ outline constraintUNIQUE(attr)
Is there any difference between set the in-line constraint NOT NULL
to a column and add a constraint CHECK (column IS NOT NULL)
?
Thanks in advance