Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It is not necessary to have both a default value and a not null constraint in defining an SQL column. When a default value is set for a column, it automatically implies that the column cannot be null. However, it is good practice to explicitly define the not null constraint for clarity and to ensure data integrity.