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.
Jim Burks — — source: Informix-list mailing list archive (1991-1998)
In article <135180001@hpcss01.cup.hp.com> stefanis@hpcss01.cup.hp.com (Nick Stefanisko) writes:
>I know there is an ESQL command to return the value of the last
>SERIAL inserted into a table but I can't remember what it is or
>where to find it. Pointers anyone?
> ___
>Integrated / / Nick Stefanisko [KD6PTD]
>Systems HEWLETT/hp/PACKARD stefanis@hp-ptp.ptp.hp.com
>Division /__/ Sunnyvale, California, USA
>
>Opinions expressed here are not those of my employer; only my fingers
>are to blame.
The ESQL/C 5.0 reference describes the sqlca structure on page 7-4. The
variable sqlca.sqlerrd[1] is described as returning the serial value after
insert.
The sqlca structure is also referenceable from 4GL code.
-----------------------------------------------------------------
Jim Burks jburks@promus.com
The Promus Companies
Memphis, Tennessee, USA
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.