I have a procedure that creates a table using the input parameter.
CREATE OR REPLACE PROCEDURE ppp(in_val in varchar2) is BEGIN EXECUTE IMMEDIATE 'create table tmp#ppp as select * from tmp#table_1 where in_v = ''' || in_val || '''' ; END ppp; in_val is an input parameter, it turns out when you call a procedure, you have to enter the parameter manually every time.
There is another table tmp#table_2 with columns in_val_id - the parameter identifier, in_val_name - ready-made parameters.
Now we need to use the loop to go through the table tmp#table_2 , take each ready-made parameter from there and use it as an input parameter for the procedure.
In short, you need to use the procedure created earlier in the loop, as I understand it. Please help! In PL \ SQL newbie !!!