Bulk collect in plsql
declare
arr my_array;
begin
SELECT table_name bulk collect into arr FROM all_tables WHERE owner = 'SCOTT';
end;
or
select collect(table_name) from all_tables where owner = 'SCOTT';
but you cant do anything with a collection like that in sqlplus.