当前位置:网站首页>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
边栏推荐
- Red Hat Satellite 6:更好地管理服务器和云
- 35道MySQL面试必问题图解,这样也太好理解了吧
- Kivy教程之 如何自动载入kv文件
- TensorBoard可视化处理案例简析
- PowerPoint 教程,如何在 PowerPoint 中将演示文稿另存为视频?
- 阿南的疑惑
- 已解决(机器学习中查看数据信息报错)AttributeError: target_names
- Flink SQL knows why (XIV): the way to optimize the performance of dimension table join (Part 1) with source code
- Internet of things completion -- (stm32f407 connects to cloud platform detection data)
- The difference between stratifiedkfold (classification) and kfold (regression)
猜你喜欢
Tutoriel PowerPoint, comment enregistrer une présentation sous forme de vidéo dans Powerpoint?
Setting up remote links to MySQL on Linux
Libuv Library - Design Overview (Chinese version)
AI 考高数得分 81,网友:AI 模型也免不了“内卷”!
常见的几种最优化方法Matlab原理和深度分析
Elk note 24 -- replace logstash consumption log with gohangout
已解决(机器学习中查看数据信息报错)AttributeError: target_names
STM32 and motor development (from MCU to architecture design)
MySQL functions and related cases and exercises
Several common optimization methods matlab principle and depth analysis
随机推荐
Today's sleep quality record 77 points
MySQL
使用Tensorflow进行完整的深度神经网络CNN训练完成图片识别案例2
MyCms 自媒体商城 v3.4.1 发布,使用手册更新
Asp. Net core1.1 without project JSON, so as to generate cross platform packages
Realize the recognition and training of CNN images, and process the cifar10 data set and other methods through the tensorflow framework
【被动收入如何挣个一百万】
[how to solve FAT32 when the computer is inserted into the U disk or the memory card display cannot be formatted]
Libuv库 - 设计概述(中文版)
18W word Flink SQL God Road manual, born in the sky
MySQL functions and related cases and exercises
静态链表(数组的下标代替指针)
R语言使用data函数获取当前R环境可用的示例数据集:获取datasets包中的所有示例数据集、获取所有包的数据集、获取特定包的数据集
The shadow of the object at the edge of the untiy world flickers, and the shadow of the object near the far point is normal
Flink SQL knows why (12): is it difficult to join streams? (top)
Convolution emotion analysis task4
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter V exercises]
AI scores 81 in high scores. Netizens: AI model can't avoid "internal examination"!
Logback 日志框架
MapReduce implements matrix multiplication - implementation code