how to insert from sequence

From: soundar rajan <psrajan(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: how to insert from sequence
Date: 1999-10-27 14:38:24
Message-ID: 19991027143824.6254.rocketmail@web2106.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

I need help in inserting a value from sequence. My
code goes like this (from Java). I do face a syntax
level problem.

statement.execute("insert into T_name (id) values (" +
nextval('s_name') + ")");

Thanks in advance for the help.

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message soundar rajan 1999-10-27 14:38:38 how to insert from sequence
Previous Message Ted Nolan SRI Augusta GA 1999-10-27 14:14:47 Re: Windows NT Service? was Re: [GENERAL] Windows Server?