cancel
Showing results for 
Search instead for 
Did you mean: 

Row Count on all table

Former Member
4,224

What is the best way to see how many row on each table, instead of using count()?

Accepted Solutions (0)

Answers (1)

Answers (1)

VolkerBarth
Contributor

If approximate numbers are sufficient, you can query the system catalog (row numbers are updated on each checkpoint):

select table_name, count from systab order by table_name
Former Member
0 Kudos

Excellent! thx!

Former Member

You could also add a "Checkpoint;" command just prior to Volker's select to force more up-to-date counts.