Guest
December 7, 2009, 1:29pm
1
Hi,
Why is that when I alter a nullable column as non nullable by creating a check
constraint ( as below ) TOAD COLUMN VIEW does not get updated.
Example.
I successfully tried to make DEPT column as non nullable using following comand.
ALTER TABLE emp1 ADD (CHECK (“DEPT” IS NOT NULL));
But TOAD COLUMN VIEW still shows that the column is nullable.Why ?
Thanks,
Shiva
It looks like you are in the describe window. Did you refresh it? If you press
F5 it will refresh. I think there should probably be a dedicated refresh button
in that window.
Ed
[TeamT]
Guest
December 7, 2009, 2:18pm
3
Well … YES I am using DESCRIBE window.
Shoun’t the DESCRIBE window show a column as NOT NULL if it has been altered so
by a constraint ?
I could’t find an explicit REFRESH button on DESCRIBE window.
F5 did not help.
By the way, I am using Toad 9.7.2.5
Thanks,
Shiva.
In the current beta, an F5 will refresh. In 9.7, I guess you’ll have to
close and re-open the describe window.
Guest
December 7, 2009, 2:48pm
5
I tried that but it still did not work
Thanks,
Shiva
The command you are giving is just a plain old check constraint. If you want a
true “not null” type constraint, you need to do this instead:
ALTER TABLE EMP1
MODIFY( DEPT NOT NULL);