Insert and obtain the pk

Поиск
Список
Период
Сортировка
От Eliu Montoya
Тема Insert and obtain the pk
Дата
Msg-id 200311061816.hA6IGqS22254@cc107.itam.mx
обсуждение исходный текст
Ответы Re: Insert and obtain the pk
Re: Insert and obtain the pk
Re: Insert and obtain the pk
Список pgsql-general

 

 

 

Hello everybody,

Does anyone know an easy way to  insert a record (without a value for the primary key because it is a sequence)  and at the same time obtain the value of primary key that was assign to this new record.

 

I always try insert and then select with the same values that I used for the insert, but I believe this is not a good way to do it.

 

Any suggestions???

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