当前位置:网站首页>MySQL reports that the column timestamp field cannot be null
MySQL reports that the column timestamp field cannot be null
2022-06-30 17:59:00 【The disease has turned yellow】
The error message is as follows
java.sql.SQLIntegrityConstraintViolationException: Column ‘xxx’ cannot be null;
among xxx Fields are timestamp(6)
Our own production is normal , The customer reported the above error in the independent deployment . perform insert Statement violates integrity constraints .
Check that the code has not been modified recently , Finally, it is locked to the database configuration
By comparing our configuration with that of the customer, it is found that when the following statement is executed
SHOW GLOBAL VARIABLES LIKE '%explicit_defaults_for_timestamp%'
Our environment variable configuration is OFF
The customer's is ON
For specific analysis, please refer to This article
Knowing the reason, you can solve the problem with a little modification .
边栏推荐
猜你喜欢

后渗透之文件系统+上传下载文件

Plane intersection and plane equation

svg实现的订票UI效果

Canvas cloud shape animation

Splitting. JS text title slow loading JS effect

【网易云信】播放demo构建:无法将参数 1 从“AsyncModalRunner *”转换为“std::nullptr_t”**

Send the injured baby for emergency medical treatment. Didi's driver ran five red lights in a row

腾讯云的一场硬仗

MySQL之零碎知识点

Tubes响应性数据系统的设计与原理
随机推荐
分布式机器学习:模型平均MA与弹性平均EASGD(PySpark)
【义修换届大礼包】
6 張圖帶你搞懂 TCP 為什麼是三次握手?
Splitting.js文本标题缓慢加载js特效
Advanced Mathematics (Seventh Edition) Tongji University General exercises one person solution
Parker variable displacement piston pump pv092r1k1t1nmmc
NFT铸造交易平台开发详情
Hyper-V: enable SR-IOV in virtual network
Zero foundation can also be an apple blockbuster! This free tool can help you render, make special effects and show silky slides
Add code block in word (Reprint)
编译生成busybox文件系统
Daily question brushing record (IX)
What should I pay attention to when playing futures? Where is safe to open an account? It's my first contact
[binary tree] preorder traversal to construct binary search tree
In the past, the industrial Internet we knew only appeared as a substitute for the consumer Internet
Thinking on large file processing (upload, download)
Importing alicloud ECS locally to solve deployment problems
5g has been in business for three years. Where will innovation go in the future?
Servlet operation principle_ API details_ Advanced path of request response construction (servlet_2)
[sword finger offer] 53 - I. find the number I in the sorted array