I'm new to PL/SQL. Is it possible to create a given number of tables with identical columns but specific table names inside a while (or for) loop setting the individual table names with the help of string concatenation e.g. No_1, No_2, etc?
My attempt:
DECLARE
my_num integer := 1;
conc char(1);
BEGIN
WHILE my_num <= 5 LOOP
select to_char(my_num) into conc from dual;
Create table No_||conc (dists float);
my_num :=my_num+1;
END LOOP;
END;
It does not work. I would be grateful if someone could make this clear for me.