maxchenjun wrote:Thanks GuzunNicolae. It doesn't work in my situation.
What do you mean it does not work in your situation??
It should work in all situations, if everything is set properly, ofcourse.
maxchenjun wrote:
But can someone tell me how to define a parameter with a query. I haven't found any mydac help about this. Thanks in advance!
As I have described above.
Code: Select all
myTable.SQL.Text:= 'select * from table where keyword=:key';
':key' is a parameter here. That you refer to it with ParamByName. Look at the code in my previous post.
This is not MyDAC specific, this is Delphi's DB specific. So better search for this in Delphi's help not MyDAC.