当前位置:网站首页>mysql中的字段问题
mysql中的字段问题
2022-07-03 13:01:00 【永远的HelloWorld】
mysql的数据库中的字段类型为datetime,通常是正常的时间类型,比如:2021-04-11 18:10:06或者null,但有时候在导入数据的时候这个字段的值会变为0000-00-00 00:00:00,这种情况下查询就出现错误。这是因为0000-00-00 00:00:00在数据库是允许出现的特殊值,但是会被jvm认为不合法的。
解决办法:
1.避免数据库出现这个时间
2.在数据库的链接url后面加上 &&zeroDateTimeBehavior=convertToNull
边栏推荐
- JS convert pseudo array to array
- 服务器硬盘冷迁移后网卡无法启动问题
- 刚毕业的欧洲大学生,就能拿到美国互联网大厂 Offer?
- JSP and filter
- 【被动收入如何挣个一百万】
- MySQL
- Flutter动态化 | Fair 2.5.0 新版本特性
- Tencent cloud tdsql database delivery and operation and maintenance Junior Engineer - some questions of Tencent cloud cloudlite certification (TCA) examination
- [Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter V exercises]
- 阿南的疑惑
猜你喜欢

Box layout of Kivy tutorial BoxLayout arranges sub items in vertical or horizontal boxes (tutorial includes source code)

已解决(机器学习中查看数据信息报错)AttributeError: target_names

Annotation and reflection

MySQL installation, uninstallation, initial password setting and general commands of Linux

Brief analysis of tensorboard visual processing cases

MySQL constraints

Flutter动态化 | Fair 2.5.0 新版本特性
![[sort] bucket sort](/img/52/95514b5a70cea75821883e016d8adf.jpg)
[sort] bucket sort

rxjs Observable filter Operator 的实现原理介绍

Logseq evaluation: advantages, disadvantages, evaluation, learning tutorial
随机推荐
Flink SQL knows why (12): is it difficult to join streams? (top)
Annotation and reflection
Logback log framework
Ubuntu 14.04 下开启PHP错误提示
pytorch 载入历史模型时更换gpu卡号,map_location设置
阿南的疑惑
The latest BSC can pay dividends. Any B usdt Shib eth dividend destruction marketing can
Logback 日志框架
双向链表(我们只需要关注插入和删除函数)
[redis] cache warm-up, cache avalanche and cache breakdown
AI scores 81 in high scores. Netizens: AI model can't avoid "internal examination"!
Students who do not understand the code can also send their own token, which is easy to learn BSC
php:  The document cannot be displayed in Chinese
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter 7 exercises]
JSP and filter
Logseq 评测:优点、缺点、评价、学习教程
实现CNN图像的识别和训练通过tensorflow框架对cifar10数据集等方法的处理
Internet of things completion -- (stm32f407 connects to cloud platform detection data)
Father and basketball
Task6: using transformer for emotion analysis