在不同的时区中检索时,是否会缓存mysql中的时间戳? [英] Is timestamp in mysql cached when retrieved in different timezones?

查看:55
本文介绍了在不同的时区中检索时,是否会缓存mysql中的时间戳?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在MySQL 5.6手册中,它说:

In the MySQL 5.6 Manual, it says:

MySQL将TIMESTAMP值从当前时区转换为UTC进行存储,然后从UTC返回当前时区进行检索.

MySQL converts TIMESTAMP values from the current time zone to UTC for storage, and back from UTC to the current time zone for retrieval.

但是如果我在不同的时区有不同的连接,时间戳值是否会被缓存?

but if I have different connections with different timezones, will the timestamp value be cached?

推荐答案

根据OZ_ 此处:

另一个区别:日期时间为"native"的查询将不被缓存,但时间戳为-的查询将被缓存.– OZ_ 11年4月28日在17:37

Another one difference: queries with "native" datetime will not be cached, but queries with timestamp - will be. – OZ_ Apr 28 '11 at 17:37

但是我无法通过谷歌搜索对此进行任何确认,并且他没有提供链接.

But I cannot find any confirmation of this by Googling, and he doesn't provide a link.

这篇关于在不同的时区中检索时,是否会缓存mysql中的时间戳?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆