Skip to main content
Version: V1.4.0

ALTER COMPILE

Description​

This statement triggers the recompilation of a procedure or function.

Privilege requirements​

To execute the ALTER COMPILE statement, the current user must have the ALTER privilege. For more information about seekdb privileges, see seekdb privilege types.

Syntax​

ALTER {procedure|functionfunction} name COMPILE [reuse settings]

Parameters​

ParameterDescription
procedureSpecifies that the alter operation is for a procedure.
functionSpecifies that the alter operation is for a function.
nameThe name of the stored procedure or function to be recompiled.
reuse settingsAn optional parameter. If specified, the reuse settings clause is used to compile the procedure or function with the same settings as the original PL object. If not specified, the procedure or function is compiled with the settings from the current session.

Examples​

ALTER procedure test_p COMPILE reuse settings;
Query OK, 0 rows affected (0.242 sec)