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 FROM SYS.ISYSCOLSTAT s 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) |
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0 |