Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - SQL Reference » Views » Consolidated views


SYSCOLSTATS consolidated view

The SYSCOLSTATS view contains the column statistics that are stored as histograms and used by the optimizer.

The tables and columns that make up this view are provided in the SQL statement below. To learn more about a particular table or column, use the links provided beneath the view definition.

ALTER VIEW "SYS"."SYSCOLSTATS" AS SELECT u.user_name, t.table_name, c.column_name, s.format_id, 
   dateadd(mi, PROPERTY('TimeZoneAdjustment'), s.update_time) as update_time, s.density, s.max_steps, s.actual_steps, 
   s.step_values, s.frequencies , TODATETIMEOFFSET( s.update_time, 0 ) as update_time_utc 
JOIN SYS.ISYSTABCOL c on (s.table_id = c.table_id and s.column_id = c.column_id)     
JOIN SYS.ISYSTAB t on (t.table_id = c.table_id)     
JOIN SYS.ISYSUSER u on (u.user_id = t.creator)
 See also