Getting the sequence from pg to insert nexts data

From: Rodrigo F(dot) Baroni <rodrigobaroni(at)yahoo(dot)com(dot)br>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Getting the sequence from pg to insert nexts data
Date: 2003-06-22 08:10:13
Message-ID: 20030622081013.65848.qmail@web11108.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hello all,

I'm doing a application using jdbc to connect with
a remote postgres database.

One of the tables use a sequence value. My doubt
is about how to get the last value of sequence to put
in my form table index to follow the insert others
values.

Does anybody have some suggests ?!!


Thanks .

Rodrigo F Baroni
Computer Science Bach's Student
Brazil

_______________________________________________________________________
Yahoo! Mail
Mais espaço, mais segurança e gratuito: caixa postal de 6MB, antivírus, proteção contra spam.
http://br.mail.yahoo.com/

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Rodrigo F. Baroni 2003-06-22 09:58:51 SOLUTION: (was : Getting the sequence from pg to insert nexts data )
Previous Message Thomas Kellerer 2003-06-21 23:58:45 Re: Urgent : JDBC problem in PostgreSql for Linux