私はこのようなことをしたい:
SQL.Text := Format('select foo from bar where baz like ''%s%''',[SearchTerm]);
もちろん、Format は最後の '%' を好みません。では、どうすればそれを逃れることができますか?\%
? %%
?
または、これを行う必要がありますか:
SQL.Text := Format('select foo from bar where baz like ''%s''',[SearchTerm+'%']);
?