I am often using substitution variables in my scripts to not have to duplicate things :
select count(*) from &&my_table;
select * from &&my_table;
-- etc.
-- a ton more queries here that are used often in together to check and run things
where :
define my_table = 'dual'; -- bad example
But I often have to change my_table when I switch to another flow (as another table become the central point of my queries).
Can I make arrays of these type for variables? (Obviously I searched around and did not found how, but what can I do be able to loop through a set of values, tables names in my case, fill in the each table in the variable and run all the queries again, and again?)