Query Block to insert into the more than 5 Tables with Similar Name(table1, Table 2) and same Column names in Oracle
===

I have table Names Like Table1, Table2 till Table9 with same column names (ID, Name, priority)
Now I want to insert/update into the tables based upon the Number being passed. For example if passed number is 2, it should insert or update the data into Table2 and if number is 3 it should be insert/updated into Table3. Please answer the same