On March 22, 2002 01:31 am, Peter Eisentraut wrote: > Christopher Kings-Lynne writes: > > Do we want the above syntax, or this syntax: > > > > ALTER TABLE blah ALTER COLUMN col SET NOT NULL; > > ALTER TABLE blah ALTER COLUMN col SET NULL; > > My only objection to the second command is that it's plain wrong. You > don't set anything to NULL, so don't make the command look like it.
How about this? ALTER TABLE blah ALTER COLUMN col UNSET NOT NULL; I would almost think that it should be NOTNULL anyway to make it clear that we are setting (or unsetting) one thing and that it is not a weird way of saying "...NOT SET NULL" or "NOT UNSET NULL" but I realize that it should also look more like the NOT NULL clause we already have in the CREATE TABLE query. -- D'Arcy J.M. Cain <darcy@{druid|vex}.net> | Democracy is three wolves http://www.druid.net/darcy/ | and a sheep voting on +1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner. ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly