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 |
when loggined as SYSTEM,how to display all the users of database using sql query?
How will you identify oracle database software release?
Explain an exception?
What are the differences between number and binary_float in oracle?
Why is oracle used?
What privilege is needed for a user to query tables in another schema?
What is the function of Redo Log ?
What is flashback Query ? And Use ?
What is the use of Redo Log Information ?
What are the types of trigger in oracle?
9. Display the client name and order date for all orders using the JOIN . . . USING method.
How to convert numbers to characters in oracle?