sql - getting row count in db2 using system tables? -
I can get line count from system table in deb2
select from tabname , Card Syscat.tables where tab name = '?'
But this will count the constant line, if I should be dynamic, then I need to run RunStat on the table What else is there than using the count (*)?
A physical content table (MQT) is another option, but this is only the most expensive DB2 product Available for license. Here's an overview:
Comments
Post a Comment