i need use dynamic querys, but when i doit this:
SQL
Code: Select all
SELECT * FROM agreement %s
Code: Select all
...
DefaultQuery := MyQuery1.SQL.CommaText;
...
MyQuery1.Active := False;
MyQuery1.SQL.Clear;
MyQuery1.SQL.CommaText := Format(DefaultQuery, ['WHERE 1=1']);//SAMPLE
MyQuery1.Active := True;
сlean shielding query " a symbol, do shielding before sending query into server.