TZQuery - problem with Params
Posted: 30.10.2009, 13:26
Hi all, i am from czech republic so promise me my english.
I have problem with ZQuery.
In Zquery.SQL have:
select * from :TAB
ParamsCheck i have active (true).
So and now i want set the parameter by command:
Query.ParamByName('TAB').AsString := 'myTable';
Query.Open;
Application throw mesage: "invalid table name".
Table name exist!
When i set Query.SQL as "select * from myTable" so application running.
Dou you have where is a problem somebody?
Pleas...
Petr
I have problem with ZQuery.
In Zquery.SQL have:
select * from :TAB
ParamsCheck i have active (true).
So and now i want set the parameter by command:
Query.ParamByName('TAB').AsString := 'myTable';
Query.Open;
Application throw mesage: "invalid table name".
Table name exist!
When i set Query.SQL as "select * from myTable" so application running.
Dou you have where is a problem somebody?
Pleas...
Petr