Re: Stored procedure

Поиск
Список
Период
Сортировка
От Ragnar
Тема Re: Stored procedure
Дата
Msg-id 1135341624.803.63.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: Stored procedure  (Jaime Casanova <systemguards@gmail.com>)
Список pgsql-general
On Thu, 2005-12-22 at 12:42 -0500, Jaime Casanova wrote:
> On 12/22/05, Ted Byers <r.ted.byers@rogers.com> wrote:
> >
> > INSERT INTO foo (auto,text)
> >     VALUES(NULL,'text');              # generate ID by inserting NULL
>
> and this of course is bad... if a insert NULL i want the NULL to be inserted.
> SQL Standard way of doing things is "ommiting the auto incremental fld at all"
>
> INSERT INTO foo (text) VALUES ('text');

and then there is the god old DEFAULT value:

  INSERT INTO foo (auto,text) VALUES(DEFAULT,'text');


gnari



В списке pgsql-general по дате отправления:

Предыдущее
От: Marko Kreen
Дата:
Сообщение: Re: Why is create function bringing down the Backend server?
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: Inheritance Algebra