Sybase Update Statistics
Sybase Update Statistics
gathers
update statistics
information
command
about
distribution of key values in specified
the
Syntax:
update index statistics table_name [[ partition
data_partition_name ] | [ index_name [ partition
index_partition_name ] ] ] [ using step values ] [ with
consumers = consumers ] [, sampling=N percent]
Sybase Update Statistics
Updating partition statistics
This command generates distribution information
for a particular partition in a table.
Syntax
update all statistics table_name [ partition data_partition_name ]
Sybase Update Statistics
update table statistics
updates statistics that are stored in systabstats
table, such as rowcount, cluster ratios, and so on.
update table statistics does not affect column
statistics stored in sysstatistics.
Syntax
update table statistics table_name [ partition data_partition_name
]
Sybase Update Statistics
update all statistics
Updates statistics on all columns of the specified
table.
Again, sampling if specified is used to gather
statistics for all non-leading columns of the index.
Syntax
update all statistics table_name [ partition data_partition_name ]