Hello
Is it possible use a parameter name as table name un a update query object?
Something like.
update
:p_TableName
set
...
...
?
Thanks
table name as parameter
Re: table name as parameter
Hello,
You cannot pass table names in parameters, macros can be used for this, for example:
You cannot pass table names in parameters, macros can be used for this, for example:
Code: Select all
UniQuery1.SQL.Text := 'UPDATE &TABLE SET &FIELD = :VALUE';
UniQuery1.MacroByName('TABLE').AsString := 'MyTable';
UniQuery1.MacroByName('FIELD').AsString := 'MyField';
UniQuery1.ParamByName('VALUE').AsString := 'MyValue';
UniQuery1.Execute;Re: table name as parameter
I will try, thanks a lot