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 are the differences between get and post methods in form submitting. Give the case where we can use get and we can use post methods? : Sql dba
How do I view a view in sql?
What is rownum and rowid?
Does view contain data?
What are sql commands?
Does postgresql run on the cloud?
How do you change a value in sql?
What are properties of the transaction?
How to rename a column in the output of sql query?
What is the difference between local and global temporary table?
What is the most common sql injection tool?
How does left join work in sql?
How do you write an inner join query?
how can we know the number of days between two given dates using mysql? : Sql dba
Is not null in sql?