Das wäre dann Abtraktion, wie man sie nicht machen sollte, wenn es ein
DBMS gibt, welches
keine Parameter kann, dann simuliere diese für
alle DBMS.
Laut der Hilfe zu FireDAC sollte es aber richtig funktionieren
Zitat von
http://docs.embarcadero.com/products/rad_studio/firedac/Executing_Command.html:
Using parameters
The parameterized
query usage is one of the best practices at
SQL database application development. Main benefits are:
you may compose single
SQL command and use it few times with different parameter values.
DBMS will build command execution plan only once. That reduces the
DBMS engine load.
when you will execute the command next time, only parameter values will be transferred to the
DBMS engine. That reduces network load.
you will not care about correct
SQL constant formats, for example - how to properly write a date constant in Microsoft
Access SQL.