Question reagarding serial type. - Mailing list pgsql-general

From Mirko Geffken
Subject Question reagarding serial type.
Date
Msg-id 200006080937.AA224854588@corcoranweb.com
Whole thread Raw
Responses Re: Question reagarding serial type.
List 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 by date:

Previous
From: jprem
Date:
Subject: help on macro substitution
Next
From: "Byron Joseph Bacaltos"
Date:
Subject: Size Limit