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
Which constraints we can use while creating database in sql?
What is sqlerrm?
what are the properties and different types of sub-queries? : Sql dba
What type of join is sql join?
what is csv? : Sql dba
How can get second highest salary in sql?
What is snowflake sql?
What is cursor and why it is required?
what is an alias command? : Sql dba
Why is theta join required?
write an sql query to find names of employee start with 'a'? : Sql dba
Are stored procedures faster than queries?
What is sql architecture?
is mysql query is case sensitive? : Sql dba
What is the difference between having clause and where clause?