DAC for MySQL

TMySQLQuery.Properties.Text

Previous Next

Points to the actual text of the SQL query passed to MySQL.

Syntax:

property Text: PChar;

Description:

Text is a read-only property that can be examined to determine the actual contents of SQL statement passed to MySQL. For parameterized queries, Text contains the SQL statement with parameters replaced by the parameter substitution symbol (?) in place of actual parameter values.

In general there should be no need to examine the Text property. To access or change the SQL statement for the query, use the SQL property. To examine or modify parameters, use the Params property.