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: DA Morgan <damorgan_at_x.washington.edu>
Date: Thu, 04 Nov 2004 21:55:15 -0800
Message-ID: <1099634045.449417@yasure>


GIMME wrote:

> 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 <table_name>
ADD CONSTRAINT <constraint_name>
CHECK (column_name NOT NULL);

ALTER TABLE <table_name>
MODIFY (<column_name> NOT NULL);

What's wrong with the published syntax
at http://tahiti.oracle.com and in your
text book?

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Thu Nov 04 2004 - 23:55:15 CST

Original text of this message

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