Re: Last inserted id

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: Last inserted id
Дата
Msg-id AA30E7BCCA5C1D4E88A231900F8325C00C72@dogbert.vale-housing.co.uk
обсуждение исходный текст
Ответ на Last inserted id  ("Simeo Reig" <simreig@terra.es>)
Список pgsql-odbc

> -----Original Message-----
> From: Jean-Michel POURE [mailto:jm.poure@freesurf.fr]
> Sent: 12 November 2001 09:36
> To: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] Last inserted id
>
>
> Hello,
>
> Why don't you add a timestamp field in the table?
> Insert a value with current time, then query to get the
> corresponding row.

'Cos that's not safe either - you might get multiple rows inserted at the
same time - unlikely, but certainly possible.

/Dave.

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

Предыдущее
От: Jean-Michel POURE
Дата:
Сообщение: Re: Last inserted id
Следующее
От: Jean-Michel POURE
Дата:
Сообщение: Re: Last inserted id