Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: syntax for not null alter table statement

Re: syntax for not null alter table statement

From: Michel Cadot <micadot{at}altern{dot}org>
Date: Fri, 5 Nov 2004 06:30:06 +0100
Message-ID: <418b0f6f$0$6267$626a14ce@news.free.fr>

"GIMME" <gimme_this_gimme_that_at_yahoo.com> a écrit dans le message de news:3f12b4fb.0411041907.468438ae_at_posting.google.com...
> I'm not having luck with
>
> alter table add constraint vvv_nn not null (column) ;
>
> Is it possible to add a not null constraint and if so what is the syntax?
>
> thanks

alter table mytable modify (mycol constraint myconstraint not null); alter table mytable add constraint myconstraint check (mycol is not null);

-- 
Regards
Michel Cadot
Received on Thu Nov 04 2004 - 23:30:06 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US