Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Can I join the same table twice?

1095


How many types of tables are there?

996


What type of join is sql join?

1022


What is linq to sql?

1178


Is microsoft sql free?

1141


Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?

3619


How do you declare a constant?

1016


Which is faster joins or subqueries?

1036


Is sql port 1433 encrypted?

1086


How many tables can you join in sql?

1006


Why left join is used in sql?

1019


how to convert character strings to numeric values? : Sql dba

1163


How do I tune a sql query?

1040


What is normalization sql?

1114


Is pl sql useful?

1037