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

Do prepared statements prevent sql injection?

517


What is a primary key? Explain

531


Explain polymorphism in pl/sql.

632


What is an index in sql with example?

508


What is difference between stored procedures and application procedures?

559






How sql query is executed?

546


What is difference between procedure and trigger?

506


When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?

618


Explain the uses of control file.

605


Is sql a backend language?

608


How do I partition in sql?

531


What is informix sql?

531


How much ram can sql express use?

499


How do I debug a stored procedure?

617


What is difference between joins and union?

521