You should put the sequence.nextval in your insert statement like
insert into tableA (id,fieldA) values (sequence.nextval, ?)
"Wilson. P" wrote:
> Hi
>
> I'm using prepared statement for insertion. Now, I would like to insert
> the next sequence value to the colulmn.How to do that?
>
> Ex: InsertTemp.SetInt(1,sequence.nextval);
>
> But, this is not working.
>
> - wilson
>
> --
--
Fred Rahmanian
Certified Inprise Instructor (Delphi 4/JBuilder 2)
Sun Certified Java Programmer
http://www.sourcetechcorp.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html