why can't we assign not null constraint as table level
constraint
Answers were Sorted based on User's Feedback
Answer / lokanath
Because its a Column Level constraint.
Not Null is a Constraint which will ensure the Column
should not be null.
Is This Answer Correct ? | 10 Yes | 12 No |
Answer / senthil
not null constraint applied on table level constraint but table must be empty otherwise not possible .
Is This Answer Correct ? | 0 Yes | 3 No |
Answer / newton_dba
A NOT NULL CONSTRAINT IS USAUALLY APPLIED ON COLUMN LEVEL
BUT IT CAN BE APPLIED ON THE TABLE LEVEL BY USING ALTER
TABLE STATMENT
ALTER TABLE EMP
MODIFY (ENAME CONSTRAINT EMP_ENAME_NN NOT NULL);
Is This Answer Correct ? | 7 Yes | 13 No |
What is the use of aggregate functions in oracle?
What query tells you how much space a tablespace named test is taking up, and how much space is remaining?
How to start a specific oracle instance?
What is control file used for?
How to find out what privileges a user currently has in oracle?
State the various uses of dbcc command?
What is the scope of a local variable?
Why required to run root.sh at the time of installation and what exactly it will do
Is the After report trigger fired if the report execution fails ?
How to find the duplicate rows count from employees table in oracle?
what is the use of composite key constraint?
7. Repeat query (7) but also display all clients who have never ordered anything.