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 are the different types of sql commands?

1064


What are different types of queries in sql?

1049


Can a commit statement be executed as part of a trigger?

998


Is not null in sql?

932


What do we need to check in database testing?

966


What is latest version of sql?

983


Why is sharding used?

941


What is the difference between explicit and implicit cursors in oracle?

999


What is the use of %rowtype?

979


explain the delete statements in sql

979


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

3518


Does truncate release storage space?

1015


Where is all the data on the internet stored?

949


What is sql in java?

1028


What are the different sql commands?

1003