pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Timothy Reed <tareed@gmail.com>
To: Sistemas C.M.P. <sistemascmp@redynet4.com.ar>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Obtain Serial Value
Date: Wed, 8 Feb 2006 09:32:05 -0500
Message-ID: <dc53e5300602080632i24818944m3077b1b46bc65497@mail.gmail.com> (raw)
In-Reply-To: <005601c62cb8$606b57d0$1601a8c0@pcsistemas>
References: <005601c62cb8$606b57d0$1601a8c0@pcsistemas>

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 (autogenerated) inmediatly
> after I do a INSERT query.  How can I do?
>



--
--------
Timothy Reed

tareed@gmail.com

view thread (3+ messages)  latest in thread

Message-ID: <dc53e5300602080632i24818944m3077b1b46bc65497@mail.gmail.com>
Permalink:  ../dc53e5300602080632i24818944m3077b1b46bc65497@mail.gmail.com/
Also on:    postgresql.org/message-id/dc53e5300602080632i24818944m3077b1b46bc65497@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: tareed@gmail.com, sistemascmp@redynet4.com.ar
  Subject: Re: Obtain Serial Value
  In-Reply-To: <dc53e5300602080632i24818944m3077b1b46bc65497@mail.gmail.com>
  References: <005601c62cb8$606b57d0$1601a8c0@pcsistemas> <dc53e5300602080632i24818944m3077b1b46bc65497@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox