Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Invalid column name problem
"alter table dept add constraint chk_loc CHECK (LOC IS NOT NULL);"
By this way, you can not see the not null definition after issuing:
"desc tabke_name"; So, alternatively, you can:
"ALTER TABLE dept MODIFY (loc char(30) CONSTRAINT nn_loc NOT NULL);"
Received on Tue Sep 18 2001 - 10:46:29 CDT