当前位置:网站首页>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
边栏推荐
- regular expression
- Kivy教程之 如何自动载入kv文件
- 道路建设问题
- 18W word Flink SQL God Road manual, born in the sky
- Task5: multi type emotion analysis
- Red hat satellite 6: better management of servers and clouds
- Task6: using transformer for emotion analysis
- Resolved (error in viewing data information in machine learning) attributeerror: target_ names
- Setting up Oracle datagurd environment
- R language uses the data function to obtain the sample datasets available in the current R environment: obtain all the sample datasets in the datasets package, obtain the datasets of all packages, and
猜你喜欢
双向链表(我们只需要关注插入和删除函数)
The difference between stratifiedkfold (classification) and kfold (regression)
Flink SQL knows why (12): is it difficult to join streams? (top)
2022-02-11 heap sorting and recursion
CVPR 2022 | interpretation of 6 excellent papers selected by meituan technical team
Resource Cost Optimization Practice of R & D team
使用tensorflow进行完整的DNN深度神经网络CNN训练完成图片识别案例
[sort] bucket sort
Flutter动态化 | Fair 2.5.0 新版本特性
The principle of human voice transformer
随机推荐
Universal dividend source code, supports the dividend of any B on the BSC
Resource Cost Optimization Practice of R & D team
Realize the recognition and training of CNN images, and process the cifar10 data set and other methods through the tensorflow framework
Introduction to the implementation principle of rxjs observable filter operator
The reasons why there are so many programming languages in programming internal skills
2022-02-13 plan for next week
User and group command exercises
8 Queen question
106. How to improve the readability of SAP ui5 application routing URL
mysql更新时条件为一查询
Father and basketball
Flink SQL knows why (XI): weight removal is not only count distinct, but also powerful duplication
The latest BSC can pay dividends. Any B usdt Shib eth dividend destruction marketing can
双链笔记 RemNote 综合评测:快速输入、PDF 阅读、间隔重复/记忆
IBEM 数学公式检测数据集
The difference between session and cookie
Annotation and reflection
Elk note 24 -- replace logstash consumption log with gohangout
AI scores 81 in high scores. Netizens: AI model can't avoid "internal examination"!
R语言gt包和gtExtras包优雅地、漂亮地显示表格数据:nflreadr包以及gtExtras包的gt_plt_winloss函数可视化多个分组的输赢值以及内联图(inline plot)