当前位置:网站首页>Mysql:insert date:SQL 错误 [1292] [22001]: Data truncation: Incorrect date value:
Mysql:insert date:SQL 错误 [1292] [22001]: Data truncation: Incorrect date value:
2022-07-03 13:16:00 【菜鸟先飞~】
操作:insert into table_test values (2021-01-01,9999-01-01)
问题:字段类型是date,也确认mysql的date格式是: 年-月-日
原因:我猜测是其底层默认的输入方式
解决方案:改为insert into table_test values (20210101,99990101)
查询结果:2021-01-01 9999-01-01
数据插入成功,期待源码大神解释下
同样的:datetime也需要来连续输入不加符号,例如:20210102122525
边栏推荐
- Annotation and reflection
- User and group command exercises
- MapReduce实现矩阵乘法–实现代码
- R language uses the data function to obtain the sample datasets available in the current R environment: obtain all the sample datasets in the datasets package, obtain the datasets of all packages, and
- R语言gt包和gtExtras包优雅地、漂亮地显示表格数据:nflreadr包以及gtExtras包的gt_plt_winloss函数可视化多个分组的输赢值以及内联图(inline plot)
- CVPR 2022 | interpretation of 6 excellent papers selected by meituan technical team
- Unity EmbeddedBrowser浏览器插件事件通讯
- Unity render streaming communicates with unity through JS
- MySQL
- JS convert pseudo array to array
猜你喜欢
PowerPoint 教程,如何在 PowerPoint 中将演示文稿另存为视频?
Flutter dynamic | fair 2.5.0 new version features
又一个行业被中国芯片打破空白,难怪美国模拟芯片龙头降价抛售了
掌握Cypress命令行选项,是真正掌握Cypress的基础
[redis] cache warm-up, cache avalanche and cache breakdown
常见的几种最优化方法Matlab原理和深度分析
Mobile phones and computers can be used, whole people, spoof code connections, "won't you Baidu for a while" teach you to use Baidu
When updating mysql, the condition is a query
太阳底下无新事,元宇宙能否更上层楼?
[quantitative trading] permanent portfolio, turtle trading rules reading, back testing and discussion
随机推荐
Students who do not understand the code can also send their own token, which is easy to learn BSC
Which securities company has the lowest Commission for opening an account online? I want to open an account. Is it safe for the online account manager to open an account
Error running 'application' in idea running: the solution of command line is too long
MapReduce implements matrix multiplication - implementation code
SwiftUI 开发经验之作为一名程序员需要掌握的五个最有力的原则
CVPR 2022 | interpretation of 6 excellent papers selected by meituan technical team
Unity EmbeddedBrowser浏览器插件事件通讯
Bidirectional linked list (we only need to pay attention to insert and delete functions)
Complete deep neural network CNN training with tensorflow to complete picture recognition case 2
106. 如何提高 SAP UI5 应用路由 url 的可读性
Unity embeddedbrowser browser plug-in event communication
【被动收入如何挣个一百万】
Disruptor -- a high concurrency and high performance queue framework for processing tens of millions of levels
[556. Next larger element III]
网上开户哪家证券公司佣金最低,我要开户,网上客户经理开户安全吗
Resource Cost Optimization Practice of R & D team
JSON serialization case summary
AI scores 81 in high scores. Netizens: AI model can't avoid "internal examination"!
栈应用(平衡符)
Anan's doubts