Allocates, opens, and parses cursor for a query.
procedure Prepare; virtual;
Call the Prepare method to allocate, open, and parse cursor for a query. Calling Prepare before executing a query improves application performance.
The MySQL prepared protocol has certain server restrictions, and its work is not always stable. That is why it is advisable to perform test before using preparation in production versions of applications.
The UnPrepare method unprepares a query.
Note: When you change the text of a query at runtime, the query is automatically closed and unprepared.