Sunday, April 3, 2011

getting row count in db2 using system tables ?

howdy!

I can get row count from system table in db2 using

select tabname,card from syscat.tables where tabname='?'

but this will give static row count,If I need to get dynamic one I need to run runstats on the table. is there any other way apart from using count(*) ?

Cheers, Prateek

From stackoverflow

0 comments:

Post a Comment