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 ...

Get Oracle SQL: the Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.