Question reagarding serial type.

Поиск
Список
Период
Сортировка
От Mirko Geffken
Тема Question reagarding serial type.
Дата
Msg-id 200006080937.AA224854588@corcoranweb.com
обсуждение исходный текст
Ответы Re: Question reagarding serial type.
Список pgsql-general
Hi,

i have tried to find info elsewhere, but did not find anything to my satisfaction, so I was wondering if anyone on this
listcould point me into the right direction. 

When I create a table

e.g.:
create table xyz
(
  id    serial PRIMARY KEY,
  uvw   varchar2(100)
);

I would like to get the id returned when I insert into this table. In oracle it is possible to do this:
insert into xyz(uvw) values ('Test') returning id;

How can I do this with SQL in Postgres. Any ideas.

Thank you for any suggestions

  Mirko


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

Предыдущее
От: jprem
Дата:
Сообщение: help on macro substitution
Следующее
От: "Byron Joseph Bacaltos"
Дата:
Сообщение: Size Limit