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 Stockinger — — source: Informix-list mailing list archive (1991-1998)
In article <35c1cdcf.8581811@n3.idirect.com>, Rajendra Singh wrote:
>I have an application which inserts rows into a table that has a serial column.
>How do I determine the (serial) value of the last row I inserted?
>
Look in the Online Help at "INFORMIX database interface, INSERT":
Row serial number
The serial number of the row is stored in the SQLReturnData property
of the transaction object after an INSERT statement executes.
(The SQLReturnData property is updated after embedded SQL only;
it is not updated after a DataWindow operation.)
If you fill the serial column with 0 before the INSERT Statement
it works automatically with DataWindow's.
Regards
Martin
----------------------------------------------------------------------------
Dipl.-Inform. (FH) Martin Stockinger mstockin@forwiss.uni-passau.de
FORWISS Passau
Innstr. 33 Tel.: +49-(0)-8504/400-192
D-94032 Passau Fax : +49-(0)-89/66617-22968
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.