I have a table x, and added a new column abc of number data type. New column successfully loaded with null values into table x.
When I was trying to add the same column with not null constraint, its giving an error : "table must be empty to add mandatory (not null) column"
I expected an error because as there is no data in it, I can't use not null constraint. But, what was not expecting this error. Why must the table be empty to add that constraint ? Could some one explain ?