in Oracle it's

select sequence.nextval from dual

not sure how other DBMS's do it, but I'm pretty sure it's not something
that's standardized by JDBC.
    (*Chris*)

----- Original Message -----
From: Wilson. P <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 13, 1999 2:13 AM
Subject: How to set the sequence number thru JDBC?


> 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
>
>
>
>
> --
>
>
>

___________________________________________________________________________
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

Reply via email to