How to perform a loop through all tables in pl/sql?

Answer Posted / rahul name

We can use user_tables view of data dictionary.
create a cursor based on query
select * from user_tables and then use use this cursor
in for loop

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When are we going to use truncate and delete?

555


What are the indexing methods?

577


What is consistency?

715


Show how functions and procedures are called in a pl/sql block.

588


what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba

547






Is sql procedural language?

554


What is scalar data type in pl sql?

556


What is rowtype?

568


what is 'mysqlimport'? : Sql dba

574


What are different types of queries in sql?

525


what is data control language? : Sql dba

588


Explain about various levels of constraint.

525


What does select count (*) mean in sql?

552


Why is partition used in sql?

550


What are the two characteristics of a primary key?

493