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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make Not null field to Null

Status
Not open for further replies.

manutektips

Programmer
Sep 8, 2003
11
GB
Hi,
I have a field in a table which is NOT NULL now and the table has data. I tried to Alter the table to make this field NULL, but could not. Can anyone suggest a way to acheive this?
 
Did you get any sort of error message when you tried to do the alter table command ?
 
Yes, The error message is : ORA-01451: column to be modified to NULL cannot be modified to NULL



 
/ *Cause: the column may already allow NULL values, the NOT NULL constraint
// is part of a primary key or check constraint.
// *Action: if a primary key or check constraint is enforcing the NOT NULL
// constraint, then drop that constraint.

If it is part of the primary key, you cannot modify it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top