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.
Martin Fey — — source: Informix-list mailing list archive (1991-1998)
Hello,
in an stored procedure it's possible like this:
let serialvalue = dbinfo("sqlca.sqlerrd1");
Martin
>>> "Ron M. Flannery" <rflanner@speedlink.net> 27.09.00 12:50 >>>
> How do I return the data from a serial field after a insert in a stored
> procedure?
>
> insert into table (x_serial) values (0)
Well in 4gl, you'd simply use the value of sqlca.sqlerrd[2]; I don't know
if it's available in a stored procedure. If not, try "select max(x_serial)
from table"..
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.