当前位置:网站首页>Is there a problem with the CURRENT_TIMESTAMP(6) function?
Is there a problem with the CURRENT_TIMESTAMP(6) function?
2022-08-10 12:35:00 【Daming_Database_Commander】
Does the CURRENT_TIMESTAMP(6) function of MYSQL ON UPDATE CURRENT_TIMESTAMP(6) have a 2038 limit like the TIMESTAMP field type, and is there a time zone conversion cost?
Accept answer 1:
There are also limitations;
The experiment sees the truth, I hope it will help you, if you have any help, please click to accept, thank you
Other Answer 1:
There are also limitations;
The experiment sees the truth, I hope it will help you, if you have any help, please click to accept, thank you
Other Answer 2:
I tested with 8.0.Also have this problem.
Other Answer 3:
Screenshot from:
https://www.modb.pro/db/130918
I hope this helps you
Other Answer 4:
In this way, MYSQL 2038 is fully limited
Will there be another time zone conversion operation?
Other Answer 5:
Two experiments again. After changing the system time to 2038, the entire mysql database collapsed. It should be the timestamp used in mysql, which caused mysql to crash.I don't know if other versions have fixed this issue.
I only have version 5.6 now.
Other Answer 6:
Ask whether the CURRENT_TIMESTAMP(6) function of MYSQL ON UPDATE CURRENT_TIMESTAMP(6) has the same time zone conversion cost as the TIMESTAMP field type? For example, the time zone is set to SYSTEM
https://mp.weixin.qq.com/s/AtyaIP92L6KnZFB9bQA3ug
MySQL parameter time_zone causes high online sys cpu
Other Answer 7:
The conclusion of the article clearly states that the partition conversion is caused by time_zone = system.
It is recommended to replace TIMESTAMP with datetime;
Content interception: https://wenku.baidu.com/view/efc469e0b84cf7ec4afe04a1b0717fd5370cb24d.html
边栏推荐
- codevs 2370 Small room tree (LCA)
- 培训机构学习费用是多少呢?
- Network Fundamentals (Section 1)
- An enhanced dynamic packet buffer management. The core part of the paper
- LeetCode 21. 合并两个有序链表
- LeetCode 362. Design Hit Counter(计数器)
- 三星计划2023年开始在越南生产半导体零部件
- The author of open source also has a life problem
- 第5章 虚拟存储器
- Golang分布式应用之etcd
猜你喜欢
Crypto Gaming: The Future of Gaming
Does face attendance choose face comparison 1:1 or face search 1:N?
A detailed explanation of implementation api embed
CURRENT_TIMESTAMP(6) 函数是否存在问题?
如何培养ui设计师的设计思维?
Behind IDC's No. 1 position, what kind of "video cloud" is Alibaba Cloud building?
three.js blur glass effect
7. Instant-ngp
百度用户产品流批一体的实时数仓实践
解决 idea 单元测试不能使用Scanner
随机推荐
So delicious!Since using this interface artifact, my team efficiency has increased by 60%!
A detailed explanation of implementation api embed
Apple bucks the trend and expands iPhone 14 series stocking, with a total of 95 million units
LeetCode 25. K 个一组翻转链表
LeetCode 445. 两数相加 II
彩色图和深度图转点云
The god-level Alibaba "high concurrency" tutorial - basic + actual combat + source code + interview + architecture is all-inclusive
Hackbar 使用教程
22年BATJ大厂必问面试题(复盘):JVM+微服务+多线程+锁+高并发
7. Instant-ngp
LeetCode 92. 反转链表 II
一文读懂NFT数字藏品为何风靡全球?
LeetCode 24. 两两交换链表中的节点
开源的作者,也有个生活问题
【Redis】内存回收策略
search--01
Excel function formulas - HLOOKUP function
技术人必看!数据治理是什么?它对数据中台建设重要吗?
第5章 虚拟存储器
How many constants and data types do you remember?