I dont know if this is possible but I am looking for any example using execute block to execute Insert statement and insert data using parameters for column names
pseudo code:
While loop_counter begin
Insert into table1 (f1+loop_counter, f2+loop_counter, f3+loop_counter, f4+loop_counter)
values (#,#,#,#)
end
where “f” is the first initial of the field name and “loop_counter” is a loop variable
Thanks
You need in EXECUTE STATEMENT operator. Try something like this: