Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Edwin Babadaglian — — source: Informix-list mailing list archive (1991-1998)
Andrew Gillespie wrote:
> Is there any way to retrieve the last serial field number inserted
> into an Informix table when using Java and JDBC? You can normally
> look in SQLCA.SQLERRD[2] but this wont work with Java.
Check out the DBINFO function.
After inserting a row, execute the following to get the serial value:
<Statement obj>.executeQuery( "SELECT DBINFO('sqlca.sqlerrd1') FROM
<table>" )
Edwin Babadaglian
edwinb@panix.com
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.