当前位置:网站首页>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
边栏推荐
- [how to solve FAT32 when the computer is inserted into the U disk or the memory card display cannot be formatted]
- Comprehensive evaluation of double chain notes remnote: fast input, PDF reading, interval repetition / memory
- Realize the recognition and training of CNN images, and process the cifar10 data set and other methods through the tensorflow framework
- SQL Injection (POST/Search)
- 挡不住了,国产芯片再度突进,部分环节已进到4nm
- Mycms we media mall v3.4.1 release, user manual update
- IBEM 数学公式检测数据集
- User and group command exercises
- Smbms project
- 常见的几种最优化方法Matlab原理和深度分析
猜你喜欢
Multi table query of MySQL - multi table relationship and related exercises
Mobile phones and computers can be used, whole people, spoof code connections, "won't you Baidu for a while" teach you to use Baidu
【BW16 应用篇】安信可BW16模组与开发板更新固件烧录说明
Logseq evaluation: advantages, disadvantages, evaluation, learning tutorial
[技术发展-24]:现有物联网通信技术特点
Servlet
The principle of human voice transformer
物联网毕设 --(STM32f407连接云平台检测数据)
NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
SQL Injection (POST/Search)
随机推荐
File uploading and email sending
SQL Injection (POST/Search)
NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
IBEM 数学公式检测数据集
Stack application (balancer)
Smbms project
Swiftui development experience: the five most powerful principles that a programmer needs to master
Setting up remote links to MySQL on Linux
Red hat satellite 6: better management of servers and clouds
The shortage of graphics cards finally came to an end: 3070ti for more than 4000 yuan, 2000 yuan cheaper than the original price, and 3090ti
The reasons why there are so many programming languages in programming internal skills
AI scores 81 in high scores. Netizens: AI model can't avoid "internal examination"!
106. How to improve the readability of SAP ui5 application routing URL
Universal dividend source code, supports the dividend of any B on the BSC
Father and basketball
Static linked list (subscript of array instead of pointer)
Software testing is so hard to find, only outsourcing offers, should I go?
8 Queen question
Unity Render Streaming通过Js与Unity自定义通讯
Kivy教程之 盒子布局 BoxLayout将子项排列在垂直或水平框中(教程含源码)