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 do u count no of rows in a table?

Answer Posted / prabhudatta barick

Automatic Optimizer Statistics Collection
By default Oracle 10g automatically gathers optimizer
statistics using a scheduled job called GATHER_STATS_JOB.

As it gathers table statistics automatically
so no need to gather table statistics before
running this query.

SELECT num_rows
FROM dba_tables
WHERE table_name = '<TABLE_NAME>';

This will give u the total no. of records in a table....

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What packages are available to pl/sql developers?

1058


What is the mutating table and constraining table?

1026


how many triggers are allowed in mysql table? : Sql dba

1071


How do I truncate a sql log file?

1074


how to include comments in sql statements? : Sql dba

958


Does sql profiler affect performance?

994


how to use in conditions? : Sql dba

1013


What is the usage of nvl function?

1040


Explain what is dbms?

1066


What is a clob in sql?

1021


Which software is used for pl sql programming?

990


What is the process of debugging?

1070


How to use transactions efficiently : transact sql

1058


What is sql analyzer?

1024


why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba

1111