在进行研究时,我很好奇为什么我的服务器在执行以下查询时显示不同的时间戳?
select current_timestamp(), UTC_TIMESTAMP(), convert_tz(UTC_TIMESTAMP(),
@@session.time_zone,"+00:00") as timezone_utc,
convert_tz(current_timestamp(), @@session.time_zone,"+00:00") as timezone_current
输出 :
current_timestamp() || UTC_TIMESTAMP() || timezone_utc || timezone_current
2015-04-02 03:01:25 || 2015-04-02 08:01:25 || 2015-04-02 13:01:25 || 2015-04-02 08:01:25