X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0953353776 for ; Fri, 1 Apr 2005 01:01:48 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 17600-10 for ; Fri, 1 Apr 2005 00:01:43 +0000 (GMT) Received: from sv4.per.eftel.com (sv4.per.eftel.com [203.24.100.149]) by svr1.postgresql.org (Postfix) with ESMTP id 1FD8453764 for ; Fri, 1 Apr 2005 01:01:39 +0100 (BST) Received: from [192.168.0.72] (unknown [202.76.162.166]) by sv4.per.eftel.com (Postfix) with ESMTP id D0090BE0DB for ; Fri, 1 Apr 2005 08:01:39 +0800 (WST) Message-ID: <424C9067.2030405@doitonce.net.au> Date: Fri, 01 Apr 2005 10:05:59 +1000 From: Jamie Deppeler Organization: Once User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: getGeneratedKeys() Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.093 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/2 X-Sequence-Number: 75915 Hi to all, I have one problem with PostgreSQL and Java. I have a table with Primary key(serial) field, but after I insert a record i am unable to retrieve this value. I have tried getGeneratedKeys() and i get nothing returned. There is another method to retrieve this field? thanks