| ASSOCIATE STATISTICS |
ASSOCIATE STATISTICS WITH
{COLUMNS [schema.]table.column[, [schema.]table.column...] |
FUNCTIONS [schema.]function[,[schema.]function...] |
PACKAGES [schema.]package[,[schema.]package...] |
INDEXES [schema.]index[,[schema.]index...] |
}
{USING [schema.]statistics_type |
DEFAULT COST (cpu_cost,io_cost,network_cost) |
DEFAULT SELECTIVITY default_selectivity
} |
Associates a method of statistics computation with database objects.
Keywords
COLUMNS
Specifies that a list of columns will be provided.
schema
The schema containing the specified table.
table
The name of the table containing the specified column.
column
The column name for which an association is defined.
FUNCTIONS
Specifies that one or more functions will be associated.
PACKAGES
Specifies that one or more packages will be associated.
INDEXES
Specifies that one or more indexes will be associated.
USING statistics_type
Specifies the statistics type being associated.
DEFAULT COST
Specifies that default costs will be provided for CPU, I/O, and the network. This keyword is not valid if the COLUMNS keyword is used.
cpu_cost
Integer representing the CPU cost of a single execution or access.
io_cost
Integer representing the I/O cost of a single execution or access.
network_cost
Integer representing the network cost of a single execution or access.
DEFAULT SELECTIVITY default_selectivity
Specifies an integer between 1 and 100, representing the default selectivity as a percentage. This keyword is not valid if the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access