当前位置:网站首页>Mysql:insert date:sql error [1292] [22001]: data truncation: incorrect date value:
Mysql:insert date:sql error [1292] [22001]: data truncation: incorrect date value:
2022-07-03 13:52:00 【Rookies fly first~】
operation :insert into table_test values (2021-01-01,9999-01-01)
problem : The field type is date, Also confirmed mysql Of date The format is : year - month - Japan
reason : I guess it's the default input method at the bottom
Solution : Change it to insert into table_test values (20210101,99990101)
Query results :2021-01-01 9999-01-01
Data insertion successful , Look forward to the explanation of the source code God
alike :datetime You also need to input continuously without symbols , for example :20210102122525
边栏推荐
- Another industry has been broken by Chinese chips. No wonder the leading analog chip companies in the United States have cut prices and sold off
- Box layout of Kivy tutorial BoxLayout arranges sub items in vertical or horizontal boxes (tutorial includes source code)
- Kivy tutorial how to automatically load kV files
- Unity EmbeddedBrowser浏览器插件事件通讯
- Internet of things completion -- (stm32f407 connects to cloud platform detection data)
- MySQL 数据增删改查综合案例
- [how to earn a million passive income]
- 3D视觉——2.人体姿态估计(Pose Estimation)入门——OpenPose含安装、编译、使用(单帧、实时视频)
- [556. Next larger element III]
- Students who do not understand the code can also send their own token, which is easy to learn BSC
猜你喜欢
Mysql:insert date:SQL 错误 [1292] [22001]: Data truncation: Incorrect date value:
[technology development-24]: characteristics of existing IOT communication technology
[sort] bucket sort
8 Queen question
Screenshot of the operation steps of upload labs level 4-level 9
Flutter动态化 | Fair 2.5.0 新版本特性
JVM系列——概述,程序计数器day1-1
[how to solve FAT32 when the computer is inserted into the U disk or the memory card display cannot be formatted]
全面发展数字经济主航道 和数集团积极推动UTONMOS数藏市场
[quantitative trading] permanent portfolio, turtle trading rules reading, back testing and discussion
随机推荐
Another industry has been broken by Chinese chips. No wonder the leading analog chip companies in the United States have cut prices and sold off
NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
[quantitative trading] permanent portfolio, turtle trading rules reading, back testing and discussion
GoLand 2021.2 configure go (go1.17.6)
Error running 'application' in idea running: the solution of command line is too long
SQL Injection (POST/Search)
Father and basketball
The solution of Chinese font garbled code in keil5
Open PHP error prompt under Ubuntu 14.04
Go language web development series 25: Gin framework: using MD5 to verify the signature for the interface station
CVPR 2022 | 美团技术团队精选6篇优秀论文解读
Leetcode-1175.Prime Arrangements
Unity render streaming communicates with unity through JS
太阳底下无新事,元宇宙能否更上层楼?
Dynamic programming 01 knapsack and complete knapsack
从零开始的基于百度大脑EasyData的多人协同数据标注
Kivy tutorial how to load kV file design interface by string (tutorial includes source code)
[redis] cache warm-up, cache avalanche and cache breakdown
SQL Injection (POST/Select)
Asp. Net core1.1 without project JSON, so as to generate cross platform packages