Re: Getting last insert value

Поиск
Список
Период
Сортировка
От Yasir Malik
Тема Re: Getting last insert value
Дата
Msg-id Pine.SGI.4.58.0311151510140.80813@guinness.cs.stevens-tech.edu
обсуждение исходный текст
Ответ на Re: Getting last insert value  (Greg Stark <gsstark@mit.edu>)
Список pgsql-sql
Thank you all for your help.
Yasir Malik

On Sat, 15 Nov 2003, Greg Stark wrote:

> Date: 15 Nov 2003 12:50:28 -0500
> From: Greg Stark <gsstark@mit.edu>
> To: Guillaume LELARGE <gleu@wanadoo.fr>
> Cc: Yasir Malik <ymalik@cs.stevens-tech.edu>, pgsql-sql@postgresql.org
> Subject: Re: [SQL] Getting last insert value
>
>
> Guillaume LELARGE <gleu@wanadoo.fr> writes:
>
> > Doing a "select currval() from my_table" after your insert should work.
>
> That's "select currval('my_table_pkcol_seq')" actually.
>
> The above would have called the currval() function for every record of the
> table which isn't what you want and in any case currval takes an argument.
>
> --
> greg
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>


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

Предыдущее
От: ow
Дата:
Сообщение: Re: Programatically switching database
Следующее
От: Theodore Petrosky
Дата:
Сообщение: Re: Getting last insert value