MyDAC

TCustomDASQL.Prepare Method

Allocates, opens, and parses cursor for a query.

Class

TCustomDASQL

Syntax

procedure Prepare; virtual;

Remarks

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.

See Also

© 1997-2017 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback