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 basic form of sql query?
What is sql in java?
Define select, insert, create, delete, update, drop keywords
Why is sql important?
Can we use ddl statements in stored procedure sql server?
Can triggers stop a dml statement from executing on a table?
What is foreign key and example?
How to make a copy values from one column to another in sql?
How do you use join?
What are the different types of triggers?
What program will open a mdb file?
What is materialized view in sql?
how to add a new column to an existing table in mysql? : Sql dba
what is a constraint? Tell me about its various levels. : Sql dba
Does pdo prevent sql injection?