ttOptSetColStats
COL_STATS
system table.
Because this procedure can be used before the table is populated with data, the values specified do not need to bear any relation to the actual values, although some basic validity checking is performed.
Required Privilege
This procedure requires no privilege (if owner) or ALTER ANY TABLE
privilege (if not owner).
Usage in TimesTen Scaleout and TimesTen Classic
This procedure is supported in TimesTen Classic.
TimesTen Scaleout applications can call this built-in procedure.
In TimesTen Scaleout, this procedure runs on all elements in the grid.
Related Views
This procedure has no related views.
Syntax
ttOptSetColStats('tblName', 'colName', numUniq, minVal,maxVal, invalidate, numNull)
Parameters
ttOptSetColStats
has these parameters:
Parameter | Type | Description |
---|---|---|
|
|
Name of an application table. Can include table owner. Using a synonym to specify a table name is not supported. |
|
|
Name of a column in that table. |
|
|
Number of unique values in the column. |
|
|
Minimum value in the column (possibly truncated). |
|
|
Maximum value in the column (possibly truncated). |
|
|
|
|
|
Indicates the total number of |
Result Set
ttOptSetColStats
returns no results.
Examples
CALL ttOptSetColStats ('SALLY.ACCTS, 'BALANCE, 400, 0x00001388, 0x000186A0, 1, 0);
Notes
-
You must specify the minimum and maximum values as
VARBINARY
.NULL
values are not permitted as minimum or maximum values. The value is stored in the platform-specific endian format. -
The statistics are treated as a single interval of column values that are uniformly distributed between the minimum value and the maximum value.