Re: Automatic increment

Поиск
Список
Период
Сортировка
От Stephen van Egmond
Тема Re: Automatic increment
Дата
Msg-id 20010111224135.A31773@bang.dhs.org
обсуждение исходный текст
Ответ на Re: Automatic increment  (GH <grasshacker@over-yonder.net>)
Ответы Re: Automatic increment  (GH <grasshacker@over-yonder.net>)
Список pgsql-php
GH (grasshacker@over-yonder.net) wrote:
> I believe that it is commonly preferred to do:
> select nextval('sequence');
> insert into foo (foo_id,...) values (<nextval>, ...);


Many people do the first SELECT on a form, stuff the result in a hidden
variable, then do the INSERT in the form's handler.  This prevents the
double- (or triple-) clicking of "submit" resulting in extra database
inserts.

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

Предыдущее
От: GH
Дата:
Сообщение: Re: Automatic increment
Следующее
От: GH
Дата:
Сообщение: Re: Automatic increment