TSqlDatabase.Query

Executes Statement and returns its TSqlResult if any, nil otherwise.

Source

Sql.Database.pas (53)

Description

Only a SELECT statement will produce a result set. Statements like UPDATE, DELETE, ALTER TABLE do not produce a result set.