Hi all,
I am creating a procedure within HANA, in which I would like to receive a tablename as input parameter to select some data from the certain table.
The only solution I found, was to use EXECUTE IMMEDIATE and concatenate the tablename to a query string.
Unfortunately I have no idea, how to get the result of the query. According to the documentation there must be a "Result Iterator", which can run through the data, but there is no information, how the iterator is called or respectively used.
Has anyone experienced EXECUTE IMMEDIATE or another solution to retrieve data from a dynamic table?
Thank you and best regards,
Fabian