X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 3ADC99DC82D for ; Wed, 8 Feb 2006 10:32:04 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 57563-02 for ; Wed, 8 Feb 2006 10:32:07 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by postgresql.org (Postfix) with ESMTP id DB8689DC821 for ; Wed, 8 Feb 2006 10:32:01 -0400 (AST) Received: by wproxy.gmail.com with SMTP id i12so68004wra for ; Wed, 08 Feb 2006 06:32:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=LeEQ1UJV5j0N+qcCM39I/IPfkRbC7q+YfUI+Ppk9rIZCEjXamhlJ1U0mMRYVSFtvO9v8ShMUrbGREICED4sdH7QTc8ThWH/dneJHv4aZ2UUyiSSIKf8zDT5hiDdbR7iq7lTEhdSJoIIJJtVgzz7ECGZ8ywycJ7A/78n9aVZZFP4= Received: by 10.54.134.12 with SMTP id h12mr128580wrd; Wed, 08 Feb 2006 06:32:05 -0800 (PST) Received: by 10.54.80.2 with HTTP; Wed, 8 Feb 2006 06:32:05 -0800 (PST) Message-ID: Date: Wed, 8 Feb 2006 09:32:05 -0500 From: Timothy Reed To: "Sistemas C.M.P." Subject: Re: Obtain Serial Value Cc: pgsql-odbc@postgresql.org In-Reply-To: <005601c62cb8$606b57d0$1601a8c0@pcsistemas> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2375_13317278.1139409125598" References: <005601c62cb8$606b57d0$1601a8c0@pcsistemas> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.001 required=5 tests=[HTML_MESSAGE=0.001] X-Spam-Score: 0.001 X-Spam-Level: X-Archive-Number: 200602/28 X-Sequence-Number: 7157 ------=_Part_2375_13317278.1139409125598 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline You should try SELECT MAX( ) FROM ; ?? On 2/8/06, Sistemas C.M.P. wrote: > > I am using VB6+ADO+ODBC with pgSQL. > I need to obtain the value of a serial field (autogenerated) inmediatly > after I do a INSERT query. How can I do? > -- -------- Timothy Reed tareed@gmail.com ------=_Part_2375_13317278.1139409125598 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline You should try SELECT MAX( <fieldname> ) FROM <tablename>; ??
On 2/8/06, Sistemas C.M.P. <sistemascmp@redynet4.com.ar > wrote:
I am using VB6+ADO+ODBC with pgSQL.
I need to obtain the value of a serial= field=20 (autogenerated) inmediatly after I do a INSERT query.  How can I=20 do?



--
--------
Timothy Ree= d

tareed@gmail.com
------=_Part_2375_13317278.1139409125598--