So, I’m trying to create a script that will generate SQL codes for copying tables from HR schema into my own schema.
What I got so far is this but it’s incorrect… will anyone help me or give me hints?
select 'create table ' || USER_TABLES || '_copy as select * from ' || USER_TABLES || ';'from hr_tables;
Please help me I’m new at this and so desperate.
Try this: