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

How to add new employee details in an employee_details table with the following details

643


How does a covering index work?

526


Is left join and outer join same?

544


What is sql basics?

575


What is difference between stored function and application function?

592






How to fetch values from testtable1 that are not in testtable2 without using not keyword?

750


How does sql profiler work?

566


What is pl sql code?

585


What is sql in java?

543


How can you fetch common records from two tables?

587


Is drop table faster than truncate?

547


Does google use sql?

508


What are the advantages of pl sql over sql?

546


How to look at the current sql*plus system settings?

604


how to create a table index in mysql? : Sql dba

593