当前位置:网站首页>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.
边栏推荐
猜你喜欢
新库上线 | CnOpenDataA股上市公司董监高信息数据
提高测试覆盖率的四大步骤
6-接口跨域处理
为什么要使用 playwright 做浏览器自动化测试?
The cornerstone of high concurrency: multithreading, daemon threading, thread safety, thread synchronization, mutual exclusion lock, all in one article!...
暴力递归到动态规划 06 (剑指 Offer II 095. 最长公共子序列)
Brute force recursion to dynamic programming 07 (516. Longest palindrome subsequence)
南瓜科学新品上线 开辟益智玩具新世界
暴力递归到动态规划 07(516. 最长回文子序列)
236. 二叉树的最近公共祖先
随机推荐
[@property enhancement in Objective-C language]
PHICOMM(斐讯)N1盒子 - Armbian5.77(Debian 9)刷入EMMC
numpy PIL tensor之间的相互转换
企业云成本管控,你真的做对了吗?
公司代码学习笔记
ES6 新特性:Class 的基本语法
一篇文章玩明白Stack-migration
Latex-查看预收录在arXiv.org上论文的TeX源文件
The LVS load balancing cluster and the deployment of the LVS - NAT experiment
236. 二叉树的最近公共祖先
2022-08-02:小红拿到了一个大立方体,该大立方体由1*1*1的小方块拼成,初始每个小方块都是白色。 小红可以每次选择一个小方块染成红色, 每次小红可能选择同一个小方块重复染色, 每次染色以后,
暴力递归到动态规划 08(小马走象棋)
【社媒营销】Facebook速推帖子如何运作?值得吗?
13-security其他.md
LVS负载均衡群集及部署LVS-NAT实验
44LVS负载均衡群集-NAT
软件定义网络实验之自定义拓扑开发
10大领域5大过程47子过程快速记忆
【Flink】使用arthas在线诊断flink的那些事
JVM内部结构图及各模块运行机制总结