The DEFAULT constraint is used to set a default value for a column. The default value will be added to all new records, if no other value is specified. # Default constraint using CREATE table ...
The DEFAULT constraint is used to set a default value for a column. This default value is automatically assigned when no value is provided during an insert operation.
I think the logic is too complicated for a CHECK constraint, and I haven't managed to get a user-defined function to work it that context so it may not be possible that way.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results