So, my problem is that i can't figure out how to address columns. I got all table data in variable l_table:
CURSOR l_cursor2_cur IS SELECT * FROM exceptions_table;
TYPE table_data_type IS TABLE OF l_cursor2_cur%ROWTYPE INDEX BY BINARY_INTEGER;
l_table_data TABLE_DATA_TYPE;
I would normally do like this (where column1 is actually a name, not a variable):
FOR i IN 1..l_table_data.COUNT LOOP
...
... l_table_data(i).column1 ...
...
END LOOP;
But i have an array with columns names:
TYPE list_of_column_names IS TABLE OF VARCHAR2(30) INDEX BY BINARY_INTEGER;
l_columns_names LIST_OF_COLUMN_NAMES;
And this doesn't work. I guess i have tried everything. So, is it even possible?
FOR i IN 1..l_table_data.COUNT LOOP
...
... l_table_data(i).l_columns_names(1) ...
...
END LOOP;