Is there a way to reference field name with a variable value in Firebird ?
for example I want to make SQL like this:
Insert into tab1 (1, f1, f2, f3)
select 1, tab2.f+var_loop, tab2.f+var_loop, tab2.f+var_loop
from tab2
where .....
where “f” is the first initial of the field name and “var_loop” is a loop variable
Thanks
No, this is not supported. I quess you can achieve something like this using EXECUTE BLOCK, but then you could build the right SQL statement on the client side right away too, would be much easier…