how to insert from sequence - Mailing list pgsql-general

From soundar rajan
Subject how to insert from sequence
Date
Msg-id 19991027143838.6280.rocketmail@web2106.mail.yahoo.com
Whole thread Raw
List 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

pgsql-general by date:

Previous
From: Ted Nolan SRI Augusta GA
Date:
Subject: Re: Windows NT Service? was Re: [GENERAL] Windows Server?
Next
From: soundar rajan
Date:
Subject: how to insert from sequence