NOT NULL -> allow NULL
Posted in 2000
Topics: Data Types & Schema Design
I have a column with the parameter NOT NULL. Now I want to allow NULLs.
I tried:
ALTER TABLE table_name MODIFY (column_name NULL);But I just get a syntax error. I coudn't find anything about this
problem.
How can I change the column type, to allow nulls?
Thanks
Johannes
How about alter table drop constraint?
"Johannes" <gedichte@lycosmail.com> wrote in message
news:3947A0CC.4F2F6A62@lycosmail.com...
> I have a column with the parameter NOT NULL. Now I want to allow NULLs.
> I tried:
> ALTER TABLE table_name MODIFY (column_name NULL);> But I just get a syntax error. I coudn't find anything about this
> problem.
>
> How can I change the column type, to allow nulls?
>
> Thanks
> Johannes
>
The Syntax is
ALTER TABLE table_name MODIFY (column_name Data_type NULL);Sameer
Johannes <gedichte@lycosmail.com> wrote in message
news:3947A0CC.4F2F6A62@lycosmail.com...
> I have a column with the parameter NOT NULL. Now I want to allow NULLs.
> I tried:
> ALTER TABLE table_name MODIFY (column_name NULL);> But I just get a syntax error. I coudn't find anything about this
> problem.
>
> How can I change the column type, to allow nulls?
>
> Thanks
> Johannes
>