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
Can I join the same table twice?
How many types of tables are there?
What type of join is sql join?
What is linq to sql?
Is microsoft sql free?
Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?
How do you declare a constant?
Which is faster joins or subqueries?
Is sql port 1433 encrypted?
How many tables can you join in sql?
Why left join is used in sql?
how to convert character strings to numeric values? : Sql dba
How do I tune a sql query?
What is normalization sql?
Is pl sql useful?