Skip to content

time_zone_transition_type

xiaoboluo768 edited this page Jun 7, 2020 · 2 revisions
  • 该表提供查询具体的跳秒信息以及与时区的对应数据
  • 表结构定义
CREATE TABLE `time_zone_transition_type` (
  `Time_zone_id` int(10) unsigned NOT NULL,
  `Transition_type_id` int(10) unsigned NOT NULL,
  `Offset` int(11) NOT NULL DEFAULT '0',
  `Is_DST` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `Abbreviation` char(8) NOT NULL DEFAULT '',
  PRIMARY KEY (`Time_zone_id`,`Transition_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Time zone transition types';
  • 表字段含义
  • Time_zone_id:时区ID
  • Transition_type_id:与time_zone_transition表中的Transition_type_id值对应
  • Offset:与UTC时间之间的偏移量
  • Is_DST:?
  • Abbreviation:某某标准时间的缩写,例如:GMT,该值为time_zone系统变量的有效值之一
  • 表记录内容示例
root@localhost : mysql 05:14:59> select * from time_zone_transition_type limit 2;
+--------------+--------------------+--------+--------+--------------+
| Time_zone_id | Transition_type_id | Offset | Is_DST | Abbreviation |
+--------------+--------------------+--------+--------+--------------+
| 1 | 0 | -968 | 0 | LMT |
| 1 | 1 | 0 | 0 | GMT |
+--------------+--------------------+--------+--------+--------------+
2 rows in set (0.00 sec)

上一篇:time_zone_transition表 |下一篇:servers表

Clone this wiki locally