PREPARE statement-name FROM statement
statement-name: identifier, or host variable
statement: string or host variable
To prepare and name a SQL statement.
DECLARE, DROP, OPEN, EXECUTE.
This command prepares a statement to be executed or used for a cursor. Any statement previously prepared with the same name is overwritten.
To free resources associated with a prepared statement, use the DROP command.
This command is functionally similar to the Embedded SQL command PREPARE. See "PREPARE statement".