When to use prepare-and-execute method

An application must use this method if the dynamic SQL statement meets any of the following criteria:

An application should use this method if it will execute the statement multiple times because it incurs the overhead associated with statement preparation only when it first prepares the statement. Each subsequent execution of the statement does not incur the cost of recompiling the statement.

The prepare-and-execute method offers the following advantages over the execute-immediate method: