Obtaining the primary key of the record just inserted
Obtaining the primary key of the record just inserted
От:
"Oliveiros Cristina" <oliveiros.cristina@marktest.pt>
Дата:
Hello, All,
I have the need to know the primary key assigned to a record I've just INSERTed .
Is there an easy way to solve this ?
Similar to SQLServer's SELECT scope_identity() ; ?
Any help deeply appreciated
Best,
Oliveiros
Re: Obtaining the primary key of the record just inserted
От:
Sean Davis <sdavis2@mail.nih.gov>
Дата:
Oliveiros Cristina wrote: > Hello, All, > > I have the need to know the primary key assigned to a record I've just > INSERTed . > > Is there an easy way to solve this ? > > Similar to SQLServer's SELECT scope_identity() ; ? > > Any help deeply appreciated Is the primary key a SERIAL column? Sean