Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table Constraints

Status
Not open for further replies.

fugarte

Programmer
Aug 29, 2002
4
US

Hi,

What is the Alter Table SQL commands to add a not null constraint to a pre-existing field of a pre-existing table. I want Oracle to create the constraint name automatically.

Thanks for your help
Frank
 
hERE'S HOW YOU DO IT:

ALTER TABLE table1
MODIFY column1 NOT NULL;
Robbie

"The rule is, not to besiege walled cities if it can possibly be avoided" -- Art of War
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top