当前位置:网站首页>MySQL报错原因:ERROR 1292 (22007): Incorrect date value: ‘1988‘ for column ‘birthday‘ at row 1
MySQL报错原因:ERROR 1292 (22007): Incorrect date value: ‘1988‘ for column ‘birthday‘ at row 1
2022-08-07 12:17:00 【bksheng】
想插入一条记录,里面包含日期记录,但是报错了。
报错原因:在插入date数据类型的值时,日期外面要加上引号。
报错代码:
insert into db_student(name,age,sex,birthday) values('张三',22,0,2000-12-12)
修正代码:
insert into db_student(name,age,sex,birthday) values('张三',22,0,'2000-12-12')
边栏推荐
- 让天下没有难学的js之this到底是什么,怎么用,这里可能给你答案
- 封装、继承和多态
- Scala安装使用
- 免费的编程连字等宽字体:Fira Code
- Swin_Unet & Trans_UNet & Unet & Deeplabv3网络训练结果对比
- How to find three and in an array of fixed value not repeating elements?Double pointer address leetcode 15. Three Numbers together
- 【2022最新】全方位带你高效刷力扣 | 反转链表
- ESP8266-Arduino编程实例-L3GD20三轴角速率传感器驱动
- mysql中select * for update
- What is the Office Open XML file format
猜你喜欢

Leetcode LCP 40. Mental Math Challenge (Yes, Solved)

FairMOT在线跟踪框架及代码学习记录

随着模型的复杂度增加,过拟合是怎么导致的?如何解决?

China University of Petroleum (Beijing) - Online work of the third stage of "Percolation Mechanics"

The pit of copying code online

【微服务架构】分布式限流策略

pyautogui practice - 10 lines of code to realize the "solidified desktop" in "Broken Elite"

CISP-PTE实操练习之综合题讲解(win2008)

Talk about automatic power switching circuit (summary of common automatic switching circuits)

高级课程作业zabbix01
随机推荐
如何在一个数组中找到三个和为定值的不重复元素? 双指针解决 leetcode 15.三数之和
2. MongoDB 应用与开发-安装
删除管理员账户指令
CISP-PTE实操练习之综合题讲解(win2008)
Installation of Anaconda
Job interview, written test experience and preparation process
什么是 Office Open XML 文件格式
[Learning] What are the packages introduced in the code?
The Three Musketeers of Mini Programs-wxml, wxss, js Preliminary Understanding
mysql中select * for update
让天下没有难学的js之this到底是什么,怎么用,这里可能给你答案
China University of Petroleum (Beijing) - "Drilling Fluid Technology Principle" Phase II Online Operation
What is the Office Open XML file format
xxl-job的使用及简述原理
Thread theory and practice
【学习】TensorFlow2环境配置
[js] Calculate the distance from the child node to the parent node and scroll to the position
汉诺塔程序
【学习】代码里引入的包都是啥东西
Question about #mysql#: Create the above table as shown, the error code is as follows SELECT * FROM studentwhere name LIKE can be%