当前位置:网站首页>Incorrect datetime value: '2022-01-01' for function str_to_date
Incorrect datetime value: '2022-01-01' for function str_to_date
2022-08-03 03:04:00 【The orange is not orange】
mysql encountered this problem during the insert into operation.
Incorrect datetime value: '2022-01-01' for function str_to_date
select str_to_date('2022-01-01', '%Y%m%d') fromdual;show warnings;
Execution result:
Reason: str_to_date('2022-01-01', '%Y%m%d')
does not match the format.
Solution: str_to_date('20220101', '%Y%m%d')
Summary: Either all -, or none of -, or other formats, in short, should be unified.
边栏推荐
猜你喜欢
随机推荐
46LVS+Keepalived群集
JVM内部结构图及各模块运行机制总结
面试题整理1
国标GB28181协议EasyGBS平台项目现场通知消息过多导致系统卡顿该如何解决?
暴力递归到动态规划 07(516. 最长回文子序列)
爆款视频怎么做?这里或许有答案
如何备考PMP才能一次通过?
visual studio 2012 为啥这么优秀
大厂标配 | 百亿级并发系统设计 | 学完薪资框框涨
南瓜科学新品上线 开辟益智玩具新世界
可信的SSL证书颁发机构有哪些
为什么要使用 playwright 做浏览器自动化测试?
二叉树的前序遍历、中序遍历、后序遍历和层序遍历
LabVIEW程序框图保存为图像
韦东山 数码相框 项目学习(五)libjpeg-turbo的移植
容联云发送验证码
Introduction to agile development
Qt在选择MSVC 编译器的时候,无法识别出M_PI的问题处理
软件定义网络实验之自定义拓扑开发
VS Code 这么牛,再次印证了一句名言