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.
Art S. Kagel — — source: Informix-list mailing list archive (1991-1998)
hoanet@my-deja.com wrote:
>
> How can i get the Serial number for a record after an insert command
> like with SQLCA. in 4gl?
INSERT INTO .....
IF sqlca.sqlcode = 0 THEN
LET record_id = sqlca.sqlcode[2]
ELSE
LET ISAM_code = sqlca.sqlcode[2]
END IF
.....
Art S. Kagel
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.