Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle SQL Questions
Morris Wong wrote in message <36C479B1.95100D45_at_netvigator.com>...
>1. I find that i can modify a column to "NOT NULL" even
This might help you answer your question, if I understood your question correctly.
I believe that the primary key can't contain null values. By using:
ALTER TABLE emp MODIFY (column_empno, number, NOT NULL);you have specified that the column_empno - which is your primary key - can't contain null values because a foreign key is usually referenced to that primary key (or a unique key). The specified NOT NULL used here, is a constraint rather than a value.
Regards,
Dean
Received on Fri Feb 12 1999 - 18:08:14 CST