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

SQL Anywhere 12.0.1 » SQL Anywhere 服务器 - SQL 参考 » 视图 » 统一视图

 

SYSCOLSTATS 统一视图

SYSCOLSTATS 视图中包含有以直方图的形式存储并由优化程序使用的列统计信息。

在以下的 SQL 语句中提供了组成该视图的表和列。要了解有关特定表或列的详细信息,请使用该视图定义下所提供的链接。

ALTER VIEW "SYS"."SYSCOLSTATS"
  as select u.user_name,t.table_name,c.column_name,
    s.format_id,s.update_time,s.density,s.max_steps,
    s.actual_steps,s.step_values,s.frequencies
    from SYS.ISYSCOLSTAT as s
      join SYS.ISYSTABCOL as c on(s.table_id = c.table_id
      and s.column_id = c.column_id)
      join SYS.ISYSTAB as t on(t.table_id = c.table_id)
      join SYS.ISYSUSER as u on(u.user_id = t.creator)
 另请参见