统计值信息
用户表上的每个索引列和每个分区在 sysstatistics 中都有相应的一行或多行。 未索引的列在其中也可能有相应的行。
| 名称 | 数据类型 | 说明 |
|---|---|---|
| statid | smallint | 保留 |
| id | int | 表的对象 ID |
| sequence | int | 序列号(如果这组统计信息需要多行) |
| moddate | datetime | 上次修改该行的日期 |
| formatid | tinyint | 该行代表的统计信息类型 |
| usedcount | tinyint | 在该行中使用的字段 c0 到 c79 的个数 |
| colidarray | varbinary(100) | 列 ID 的有序列表 |
| c0...c79 | varbinary(255) | 统计数据 |
| indid | smallint | 分区的索引 ID |
| ststatus | smallint | 此统计信息行的状态位;根据行的类型的不同,可能的值会有所不同。 |
| partitionid | int | 分区 ID (Partition ID) |
| spare2 | smallint | 留作将来使用 |
| spare3 | int | 留作将来使用 |