当前位置:网站首页>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
边栏推荐
- Annotation and reflection
- 8皇后问题
- 物联网毕设 --(STM32f407连接云平台检测数据)
- Kivy tutorial how to load kV file design interface by string (tutorial includes source code)
- Flink SQL knows why (17): Zeppelin, a sharp tool for developing Flink SQL
- 顺序表(C语言实现)
- Flink SQL knows why (13): is it difficult to join streams? (next)
- Libuv Library - Design Overview (Chinese version)
- Fabric. JS three methods of changing pictures (including changing pictures in the group and caching)
- Unity EmbeddedBrowser浏览器插件事件通讯
猜你喜欢

Flutter动态化 | Fair 2.5.0 新版本特性

Smbms project

STM32 and motor development (from MCU to architecture design)

使用Tensorflow进行完整的深度神经网络CNN训练完成图片识别案例2

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

Typeerror resolved: argument 'parser' has incorrect type (expected lxml.etree.\u baseparser, got type)

显卡缺货终于到头了:4000多块可得3070Ti,比原价便宜2000块拿下3090Ti

Resolved (error in viewing data information in machine learning) attributeerror: target_ names

常见的几种最优化方法Matlab原理和深度分析

Flink code is written like this. It's strange that the window can be triggered (bad programming habits)
随机推荐
Flink SQL knows why (19): the transformation between table and datastream (with source code)
The difference between stratifiedkfold (classification) and kfold (regression)
[colab] [7 methods of using external data]
Flutter动态化 | Fair 2.5.0 新版本特性
Flick SQL knows why (10): everyone uses accumulate window to calculate cumulative indicators
Complete deep neural network CNN training with tensorflow to complete picture recognition case 2
The 35 required questions in MySQL interview are illustrated, which is too easy to understand
Open PHP error prompt under Ubuntu 14.04
Resource Cost Optimization Practice of R & D team
Task6: using transformer for emotion analysis
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter 7 exercises]
Flink SQL knows why (XIV): the way to optimize the performance of dimension table join (Part 1) with source code
(first) the most complete way to become God of Flink SQL in history (full text 180000 words, 138 cases, 42 pictures)
The principle of human voice transformer
JS 将伪数组转换成数组
Reptile
Swiftui development experience: the five most powerful principles that a programmer needs to master
顺序表(C语言实现)
CVPR 2022 | interpretation of 6 excellent papers selected by meituan technical team
106. How to improve the readability of SAP ui5 application routing URL