INFORMIX
DataBlade API Programmer's Manual
Chapter 12: DataBlade API Function Descriptions
Home Contents Index Master Index New Book

mi_last_serial()

The mi_last_serial() function returns a SERIAL value that the database server has generated for the most recent INSERT statement on a SERIAL8 column.

Syntax

Usage

The database server automatically generates values for SERIAL columns when it executes an INSERT statement on the column. Use the mi_last_serial() function to obtain this system-generated value for your DataBlade routine.

To use the mi_last_serial() function in a DataBlade API client application, call it after the INSERT has completed; that is when the mi_get_result() function has returned the MI_DML statement.

Return Values

MI_OK

The function was successful.

MI_ERROR

The function was not successful.

Related Topics

See the descriptions of the following functions: mi_get_result() and mi_last_serial8().




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.