当前位置:网站首页>Field problems in MySQL
Field problems in MySQL
2022-07-03 13:44:00 【Forever HelloWorld】
mysql The field type in the database of is datetime, It is usually a normal time type , such as :2021-04-11 18:10:06 perhaps null, But sometimes when importing data, the value of this field will change to 0000-00-00 00:00:00, In this case, an error occurs in the query . This is because 0000-00-00 00:00:00 Special values are allowed in the database , But will be jvm Considered illegal .
terms of settlement :
1. Avoid this time in the database
2. Link in the database url Followed by &&zeroDateTimeBehavior=convertToNull
边栏推荐
- SQL Injection (GET/Select)
- pytorch 载入历史模型时更换gpu卡号,map_location设置
- Flutter动态化 | Fair 2.5.0 新版本特性
- Students who do not understand the code can also send their own token, which is easy to learn BSC
- Unity render streaming communicates with unity through JS
- 树的深入和广度优先遍历(不考虑二叉树)
- IBEM mathematical formula detection data set
- When updating mysql, the condition is a query
- The network card fails to start after the cold migration of the server hard disk
- Red hat satellite 6: better management of servers and clouds
猜你喜欢

MySQL constraints

The principle of human voice transformer

Resource Cost Optimization Practice of R & D team

Detailed explanation of multithreading

AI scores 81 in high scores. Netizens: AI model can't avoid "internal examination"!

研发团队资源成本优化实践

Today's sleep quality record 77 points

Road construction issues

AI 考高数得分 81,网友:AI 模型也免不了“内卷”!

Flutter动态化 | Fair 2.5.0 新版本特性
随机推荐
When updating mysql, the condition is a query
Flutter动态化 | Fair 2.5.0 新版本特性
Kivy教程之 盒子布局 BoxLayout将子项排列在垂直或水平框中(教程含源码)
Ubuntu 14.04 下开启PHP错误提示
Leetcode-1175.Prime Arrangements
SVN添加文件时的错误处理:…\conf\svnserve.conf:12: Option expected
JSP and filter
记录关于银行回调post请求405 问题
logback日志的整理
18W word Flink SQL God Road manual, born in the sky
Stack application (balancer)
R语言gt包和gtExtras包优雅地、漂亮地显示表格数据:nflreadr包以及gtExtras包的gt_plt_winloss函数可视化多个分组的输赢值以及内联图(inline plot)
栈应用(平衡符)
mysql中的字段问题
Anan's doubts
[quantitative trading] permanent portfolio, turtle trading rules reading, back testing and discussion
Detailed explanation of multithreading
[556. Next larger element III]
Error running 'application' in idea running: the solution of command line is too long
User and group command exercises