Re: Question about NOT NULL and default values.
От
Tim Uckun
Тема
Re: Question about NOT NULL and default values.
Дата
Msg-id
855e4dcf0810162058m483fc213k77db9522a84fc60b@mail.gmail.com
Ответ на
Re: Question about NOT NULL and default values. (Scott Marlowe)
Список
Дерево обсуждения
Question about NOT NULL and default values. "Tim Uckun" <timuckun@gmail.com>
Re: Question about NOT NULL and default values. Stephan Szabo <sszabo@megazone.bigpanda.com>
Re: Question about NOT NULL and default values. "Scott Marlowe" <scott.marlowe@gmail.com>
Re: Question about NOT NULL and default values. Stephan Szabo <sszabo@megazone.bigpanda.com>
Re: Question about NOT NULL and default values. "Scott Marlowe" <scott.marlowe@gmail.com>
Re: Question about NOT NULL and default values. brian <brian@zijn-digital.com>
Re: Question about NOT NULL and default values. Chris <dmagick@gmail.com>
Re: Question about NOT NULL and default values. "Tim Uckun" <timuckun@gmail.com>
Re: Question about NOT NULL and default values. "Scott Marlowe" <scott.marlowe@gmail.com>
Re: Question about NOT NULL and default values. "Tim Uckun" <timuckun@gmail.com>
Re: Question about NOT NULL and default values. "Scott Marlowe" <scott.marlowe@gmail.com>
Re: Question about NOT NULL and default values. "Scott Marlowe" <scott.marlowe@gmail.com>
Re: Question about NOT NULL and default values. "Tim Uckun" <timuckun@gmail.com>
Re: Question about NOT NULL and default values. "Scott Marlowe" <scott.marlowe@gmail.com>
On Fri, Oct 17, 2008 at 4:40 PM, Scott Marlowe wrote: > On Thu, Oct 16, 2008 at 9:09 PM, Tim Uckun wrote: >> Hey all. >> >> I am using postgres 8.3 with a rails application. I have a column >> defined like this. >> >> ALTER TABLE provisions ADD COLUMN provider_id integer; >> ALTER TABLE provisions ALTER COLUMN provider_id SET STORAGE PLAIN; >> ALTER TABLE provisions ALTER COLUMN provider_id SET NOT NULL; >> ALTER TABLE provisions ALTER COLUMN provider_id SET DEFAULT 0; > > Hold on, when did you assign a sequence to this column? When you > created it as a serial? Or is there none assigned? > There is no sequence. It's a foreign key.
В списке pgsql-general по дате отправления