Re: [GENERAL] Simple problem?

Поиск
Список
Период
Сортировка
От
Тема Re: [GENERAL] Simple problem?
Дата
Msg-id Pine.LNX.4.10.10003021109310.11416-100000@picasso.realtyideas.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Simple problem?  (Peter Eisentraut <e99re41@DoCS.UU.SE>)
Список pgsql-general

On Thu, 2 Mar 2000, Peter Eisentraut wrote:

> On Wed, 1 Mar 2000, Stan Jacobs wrote:
>
> > 2. How do I get the order_id from the record I just wrote?
>
> You have to select it back out. A select on max(order_id) might do, but
> you might get caught if someone else does updates on your table as well. I
> am personally not so fond of serial columns because of this problem.
what? if you serial type, you can get it by curval(seqname) (see doc for
details).  Peter, how can You make such a mistake :-) no sleep for a week?


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [GENERAL] Performance on WindowsNT
Следующее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: [GENERAL] Simple problem?