update statistics commands

The update statistics commands create statistics, if there are no statistics for a particular column, or replaces existing statistics if they already exist. The statistics are stored in the system tables systabstats and sysstatistics. The syntax is:

update statistics table_name 
    [ [index_name] | [( column_list ) ] ]
    [using step values ]
    [with consumers = consumers ]
update index statistics table_name [index_name] 
    [using step values ]
    [with consumers = consumers ]

update all statistics table_name 

The effects of the commands and their parameters are: