How to perform a loop through all tables in pl/sql?
Answer Posted / chandrakant rathod
We can get all tables for particular instance using below block .
SET SERVEROUTPUT ON;
begin
for rec in (select object_name from user_objects where object_type='TABLE')
loop
dbms_output.put_line('TABLE'||rec.object_name);
end loop;
end;
/
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is the need of merge statement?
Is sql a dbms?
what is subquery? : Sql dba
how to shut down the server with 'mysqladmin'? : Sql dba
What is a constraint?
What is difference between ms sql and mysql?
What is trigger and types?
What is difference between sql and mysql?
What is a natural join?
Explain what is table in a database?
Can we rollback delete command?
What is parameter substitution in sql?
How to select 10 records from a table?
Explain isolation levels. : Transact sql
What is sql prepared statement?