Expert Answer Center > Expert Knowledgebase > View Answer
EMAIL THIS
Expert Knowledgebase
  EXPERT KNOWLEDGEBASE HOME        RSS FEEDS  
If I run the following Runstats command:
Runstats Database.tablespace Index(all)
will it update ALL columns of a multi-column index or just the first column?
QUESTION POSED ON: 29 JUN 2004
QUESTION ANSWERED BY: Craig Mullins

When you specify INDEX(ALL) without any other options DB2 will update statistics only for the first column of each index defined on the tables in the table space specified.

If you want to gather statistical information for additional index columns you will need to specify other options.

The KEYCARD parameter tells RUNSTATS to collect all of the distinct values in all of the 1 to n key column combinations for the specified indexes. n is the number of columns in the index.

The NUMCOLS parameter can be used to indicate a specific number of key columns to concatenate together when collecting frequent values from the specified index. For example, specifying three means to collect frequent values on the concatenation of the first three key columns. The default is 1, which means collect frequent values on the first key column of the index.

For More Information

Related Topics:

Search Advice from more than 250 TechTarget Experts
Your question may have already been answered! Browse or search more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice
ASSOCIATED RSS FEEDS

Expert Answer Center: Expert Q&As
View all RSS Feeds  |  RSS Info

HomeExperts on DemandIT Expert Webcast SeriesExpert KnowledgebaseSite Index
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  RSS  |  Site Map




All Rights Reserved, Copyright 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts