SQL adaptation guide For IBM DB2 UDB 8.x, 9x / Data dictionary |
Informix® provides a special instruction to compute database statistics in order to improve query optimization plans:
UPDATE STATISTICS [options]
IBM® DB2® provides the following equivalent:
RUNSTATS ON TABLE full-qualified-table-name [options]
You must execute the RUNSTATS command manually from a DB2 Command Center®.