Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 383A19F926D for ; Thu, 8 Nov 2007 13:56:23 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 40266-04-2 for ; Thu, 8 Nov 2007 13:56:16 -0400 (AST) Received: from jupiter.marktest.pt (delta.marktest.pt [80.251.174.116]) by postgresql.org (Postfix) with ESMTP id 8FA439FCB88 for ; Thu, 8 Nov 2007 13:56:16 -0400 (AST) Received: from suite (suite.marktest.pt [10.61.90.236]) by jupiter.marktest.pt with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id VG9WDHD9; Thu, 8 Nov 2007 17:56:14 -0000 Message-ID: <009901c82230$a799d3b0$ec5a3d0a@marktestcr.marktest.pt> From: "Oliveiros Cristina" To: Subject: Obtaining the primary key of the record just inserted Date: Thu, 8 Nov 2007 17:56:14 -0000 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0096_01C82230.A78BA2E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.114 tagged_above=0 required=5 tests=AWL=0.112, BAYES_50=0.001, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200711/27 X-Sequence-Number: 29555 This is a multi-part message in MIME format. ------=_NextPart_000_0096_01C82230.A78BA2E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =20 Hello, All, I have the need to know the primary key assigned to a record I've just = INSERTed .=20 Is there an easy way to solve this ? Similar to SQLServer's SELECT scope_identity() ; ? Any help deeply appreciated Best, Oliveiros ------=_NextPart_000_0096_01C82230.A78BA2E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
Hello, All,
 
I have the need to know the primary key = assigned to=20 a record I've just INSERTed .=20
 
Is there an easy way to solve this = ?
 
Similar to SQLServer's  SELECT scope_identity() ; ?
 
Any help deeply = appreciated
 
Best,
Oliveiros
------=_NextPart_000_0096_01C82230.A78BA2E0--