当前位置:网站首页>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
边栏推荐
- Flink SQL knows why (16): dlink, a powerful tool for developing enterprises with Flink SQL
- The R language GT package and gtextras package gracefully and beautifully display tabular data: nflreadr package and gt of gtextras package_ plt_ The winloss function visualizes the win / loss values
- Open PHP error prompt under Ubuntu 14.04
- 常见的几种最优化方法Matlab原理和深度分析
- R语言gt包和gtExtras包优雅地、漂亮地显示表格数据:nflreadr包以及gtExtras包的gt_plt_winloss函数可视化多个分组的输赢值以及内联图(inline plot)
- 这本数学书AI圈都在转,资深ML研究员历时7年之作,免费电子版可看
- 18W word Flink SQL God Road manual, born in the sky
- [how to solve FAT32 when the computer is inserted into the U disk or the memory card display cannot be formatted]
- 研发团队资源成本优化实践
- Will Huawei be the next one to fall
猜你喜欢
Unity EmbeddedBrowser浏览器插件事件通讯
Kivy教程之 如何自动载入kv文件
MyCms 自媒体商城 v3.4.1 发布,使用手册更新
Flink SQL knows why (13): is it difficult to join streams? (next)
Can newly graduated European college students get an offer from a major Internet company in the United States?
February 14, 2022, incluxdb survey - mind map
Flink SQL knows why (XI): weight removal is not only count distinct, but also powerful duplication
CVPR 2022 | interpretation of 6 excellent papers selected by meituan technical team
AI 考高数得分 81,网友:AI 模型也免不了“内卷”!
已解决(机器学习中查看数据信息报错)AttributeError: target_names
随机推荐
SwiftUI 开发经验之作为一名程序员需要掌握的五个最有力的原则
Setting up Oracle datagurd environment
106. 如何提高 SAP UI5 应用路由 url 的可读性
实现CNN图像的识别和训练通过tensorflow框架对cifar10数据集等方法的处理
The principle of human voice transformer
json序列化时案例总结
Comprehensive evaluation of double chain notes remnote: fast input, PDF reading, interval repetition / memory
Heap structure and heap sort heapify
双链笔记 RemNote 综合评测:快速输入、PDF 阅读、间隔重复/记忆
Anan's doubts
Flink code is written like this. It's strange that the window can be triggered (bad programming habits)
R语言使用data函数获取当前R环境可用的示例数据集:获取datasets包中的所有示例数据集、获取所有包的数据集、获取特定包的数据集
Useful blog links
When we are doing flow batch integration, what are we doing?
Multi table query of MySQL - multi table relationship and related exercises
【电脑插入U盘或者内存卡显示无法格式化FAT32如何解决】
PowerPoint tutorial, how to save a presentation as a video in PowerPoint?
JSP and filter
stm32和电机开发(从mcu到架构设计)
Logseq 评测:优点、缺点、评价、学习教程