I want to use the dqExpress TSQLQuery component. But I do not know how to write SQL to add a parameter. I will give an example, maybe it will be more clear what my problem is.
The following works in TADOQuery:
SELECT* FROM sometable WHERE sometable.id = :value;
Now in the above example, you pass the parameter to the query using a colon (:) before the parameter name. But when I try to do this with TSQLQuery, I get the following error:
dbExpress driver does not support the TDBXTypes.UNKNOWN data type. Vendor Error Message.
Now, if this is not the case as you pass the parameter in the TSQLQuery component, can someone please help me. This is a new territory for me.
Im using the Firebird database, and Im using Delphi XE2
source share