In this case, there are two column groups: (deptno, deptname) and (admrdept, location).
本例中,总共有两个列组:(deptno,deptname)和(admrdept,location)。
Under the Result Attributes tab, deselect all attributes except "deptname" and "deptno."
在标签ResultAttributes之下,取消对除“deptname”与“deptno”之外所有属性的选择。
Example 18: Collect catalog statistics on all indexes and on columns deptno and deptname.
示例18:收集所有索引以及列deptno和deptname上的目录统计信息。
Example 16: Collect catalog statistics on table, with distribution statistics on columns deptno and deptname.
示例16:收集表上的目录统计信息,包含列deptno和deptname上的分布统计信息。
Distribution statistics limits are set individually for the deptname column, while deptno column USES a common default.
单独为deptname列设置分布统计信息的范围,而deptno列使用公共的默认值。
Example 12: Collect catalog statistics on only the table, with basic column statistics for deptno and deptname and distribution statistics on mgrno and admrdept.
示例12:只收集表上的目录统计信息,包含deptno和deptname上的基本列统计信息以及mgrno和admrdept上的分布统计信息。
The runtime will determine the parameters to an SQL operation (such as the deptno in the example) and also analyze metadata of the SQL resultset to create the right XML output types.
运行时将确定一个SQL操作的参数(比如本例中的deptno)并且还分析该SQL结果集的元数据,以创建正确的XML输出类型。
The index rows will not be in LASTNAME order within DEPTNO A01.
在DEPTNO A01中,索引行将不以LASTNAME顺序排列。
And we also started by creating an index on the EMPNO and DEPTNO columns.
我们还从创建关于EMPNO和deptno列的索引开始。
Therefore, using control break logic, DB2 can return distinct DEPTNO, LASTNAME combinations without sorting.
因此使用控制断开逻辑,DB2可以返回不同的 DEPTNO、LASTNAME组合,而无需排序。
Our index is in DEPTNO order, and within that order, in groups of identical (but unordered) values of LASTNAME.
我们的索引是DEPTNO顺序的,而在该顺序中,相等(但无序)的LASTNAME值分为一个小组。
We can match on one column, and if we use the index the traditional way, the data will come back in DEPTNO order.
我们可以在一列上进行匹配,如果我们以传统方式使用索引,数据将按DEPTNO顺序返回。
Columns in the existing indexes: If an index already exists on EMPNO or DEPTNO, it might not be wise to create another index on the combination.
现有索引中的列:如果在EMPNO或DEPTNO上已经有了一个索引,那么创建另一个关于该组合的索引也许并不明智。
Furthermore, if indexes already exist for both columns (one for EMPNO and one for DEPTNO), DB2 can use them both to satisfy this query so creating another index might not be necessary.
而且,如果已经存在关于这两列的索引(一个关于EMPNO,一个关于DEPTNO),DB 2可以使用它们来满足该查询,因此创建另一个索引也许是没有必要的。
Furthermore, if indexes already exist for both columns (one for EMPNO and one for DEPTNO), DB2 can use them both to satisfy this query so creating another index might not be necessary.
而且,如果已经存在关于这两列的索引(一个关于EMPNO,一个关于DEPTNO),DB 2可以使用它们来满足该查询,因此创建另一个索引也许是没有必要的。
应用推荐