当前位置:网站首页>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
边栏推荐
- SQL Injection (POST/Search)
- SQL Injection (POST/Select)
- [556. Next larger element III]
- [机缘参悟-37]:人感官系统的结构决定了人类是以自我为中心
- Unable to stop it, domestic chips have made another breakthrough, and some links have reached 4nm
- [sort] bucket sort
- Golang — template
- CVPR 2022 | interpretation of 6 excellent papers selected by meituan technical team
- Dynamic programming 01 knapsack and complete knapsack
- MySQL installation, uninstallation, initial password setting and general commands of Linux
猜你喜欢
GoLand 2021.1: rename the go project
Unity embeddedbrowser browser plug-in event communication
SQL Injection (AJAX/JSON/jQuery)
3D视觉——2.人体姿态估计(Pose Estimation)入门——OpenPose含安装、编译、使用(单帧、实时视频)
Flutter dynamic | fair 2.5.0 new version features
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
Go language unit test 3: go language uses gocovey library to do unit test
【BW16 应用篇】安信可BW16模组与开发板更新固件烧录说明
Qt学习23 布局管理器(二)
随机推荐
[technology development-24]: characteristics of existing IOT communication technology
Kivy tutorial how to load kV file design interface by string (tutorial includes source code)
Box layout of Kivy tutorial BoxLayout arranges sub items in vertical or horizontal boxes (tutorial includes source code)
又一个行业被中国芯片打破空白,难怪美国模拟芯片龙头降价抛售了
php 迷宫游戏
掌握Cypress命令行选项,是真正掌握Cypress的基础
Common network state detection and analysis tools
8 Queen question
JS convert pseudo array to array
Go language web development series 28: solve cross domain access of CORS with gin contrib / CORS
IBEM mathematical formula detection data set
TensorBoard可视化处理案例简析
Flutter dynamic | fair 2.5.0 new version features
SQL Injection (POST/Select)
[556. Next larger element III]
Comprehensively develop the main channel of digital economy and digital group, and actively promote the utonmos digital Tibet market
编程内功之编程语言众多的原因
Qt学习25 布局管理器(四)
Use and design of Muduo buffer class
【被动收入如何挣个一百万】