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 break?
What are the most important characteristics of pl/sql?
what is 'mysqlshow'? : Sql dba
How can you create an empty table from an existing table?
What is the purpose of a secondary key?
Define the select into statement.
Are stored procedures compiled?
What information is needed to connect sql*plus an oracle server?
What is the starting oracle error number?
What are sql built in functions?
When is a declare statement required?
how to concatenate two character strings? : Sql dba
What is a sql schema used for?
Explain autonomous transaction.
Can we group by two columns in sql?