当前位置:网站首页>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
边栏推荐
- Setting up remote links to MySQL on Linux
- 实现CNN图像的识别和训练通过tensorflow框架对cifar10数据集等方法的处理
- Unity EmbeddedBrowser浏览器插件事件通讯
- [Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter 7 exercises]
- Mycms we media mall v3.4.1 release, user manual update
- Flink SQL knows why (VIII): the wonderful way to parse Flink SQL tumble window
- 栈应用(平衡符)
- MySQL installation, uninstallation, initial password setting and general commands of Linux
- 【电脑插入U盘或者内存卡显示无法格式化FAT32如何解决】
- PowerPoint tutorial, how to save a presentation as a video in PowerPoint?
猜你喜欢

When we are doing flow batch integration, what are we doing?

Comprehensive evaluation of double chain notes remnote: fast input, PDF reading, interval repetition / memory

The principle of human voice transformer

(first) the most complete way to become God of Flink SQL in history (full text 180000 words, 138 cases, 42 pictures)

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

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

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

Flick SQL knows why (10): everyone uses accumulate window to calculate cumulative indicators

106. How to improve the readability of SAP ui5 application routing URL

Typeerror resolved: argument 'parser' has incorrect type (expected lxml.etree.\u baseparser, got type)
随机推荐
Typeerror resolved: argument 'parser' has incorrect type (expected lxml.etree.\u baseparser, got type)
KEIL5出现中文字体乱码的解决方法
Students who do not understand the code can also send their own token, which is easy to learn BSC
35道MySQL面试必问题图解,这样也太好理解了吧
mysql更新时条件为一查询
Flink SQL knows why (16): dlink, a powerful tool for developing enterprises with Flink SQL
Cadre de logback
php:  The document cannot be displayed in Chinese
Internet of things completion -- (stm32f407 connects to cloud platform detection data)
Flutter动态化 | Fair 2.5.0 新版本特性
The difference between session and cookie
MySQL installation, uninstallation, initial password setting and general commands of Linux
Red hat satellite 6: better management of servers and clouds
Smbms project
The latest BSC can pay dividends. Any B usdt Shib eth dividend destruction marketing can
The principle of human voice transformer
File uploading and email sending
ThreadPoolExecutor realizes multi-threaded concurrency and obtains the return value (elegant and concise way)
8皇后问题
用户和组命令练习