getStatement()

variable.GetStatement()

This method is used with a PREPARED variable. It returns the text of the SQL statement or statements which have been prepared using the Prepare() method with the same variable. It can be used only if the PREPARED variable has been initialized using the Prepare() method first.

Usage

This method accepts no parameters and returns one value which is the text of the prepared SQL statement.

An example method call:

CALL prep_v.GetStatement() RETURNING cur_name