Why can't we assign not null constraint as table level constraint?

Why can't we assign not null constraint as table level constraint in oracle?

Not NULL is a column level constraint to ensure that any value in that column is not null, hence can’t be used as a table level constraint. One can however use it on multiple columns as per the need. Also it can be applied on table level using the ALTER command.

Eg:
ALTER TABLE emp
MODIFY(ename CONSTRAINT EMP_ENAME_NNULL NOT NULL);
Use of between page triggers in REPORTS - oracle
The between-page trigger is used for creating conditional formatting, eg: retrieving information...
Delete all duplicate records using subquery - oracle
Delete all duplicate records using subquery - Query: DELETE from table1 where rowid not in (select MAX(rowid) from table1 GROUP BY column_name);...
Types of trigger can be used in a table at a time - oracle
Types of trigger can be used in a table - We can use maximum of 12 triggers on a table. • BEFORE INSERT • AFTER INSERT...
Post your comment