`
wandejun1012
  • 浏览: 2719124 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Data truncation: Incorrect dateti me value: '' for column

 
阅读更多

 

原因是mysql从5.0版本升级到5.6造成的。

 

解决方法就是将相应的jar包升级到较新的版本即可,比如mysql-connector-java-5.1.31.jar或者mysql-connector-java-5.0.8-bin.jar 

 

下载地址在附件中.

 

----------------------------------------------------------------------------------------

注意到:在不改代码的情况下,目前insert或者update的问题,用升级jar包的方法可以解决上述问题。可是又带来了新的问题,就是在查询分页时,比如limit 5,将5变成了''5'',这个只能改代码啦。

 

 refurl:http://blog.csdn.net/vipzyj/article/details/8721644

 

http://nassir.iteye.com/blog/1834974

 

 

 

 

 

 

 

分享到:
评论

相关推荐

    mysql插入数据中文报错问题,最全解决方式

    ERROR SqlExceptionHelper:147 Incorrect string value: '\xE6\xB2\xA1\xE5\x90\x83' for column 'others' at row 1 org.springframework.orm.jpa.JpaSystemException: could not execute statement; nested ...

    MySQL中字符串与Num类型拼接报错的解决方法

    发现问题 图片地址如下 ...需要实现的效果是要加上尺寸,如以下效果 ...一开始想当然使用 UPDATE tag_group SET cover = cover + '|...Data truncation: Truncated incorrect DOUBLE value: ‘http://huoche.7234.cn/im

    Data Truncation(亲测可用).md

    Data Truncation(亲测可用).md

    strings-truncation:用全角字符和ANSI代码截断字符串

    字符串::截断 使用全角字符和ANSI代码截断字符串。 特征 没有猴子修补String类 ... strings = Strings :: Truncation . new strings . truncate ( "I try all things, I achieve what I can." ) # => "I try all thing

    truncation:这个程序截断一个给定的数字-matlab开发

    在MATLAB编程环境中,`truncation`是一个常见的数学操作,用于处理浮点数,将它们转换为整数或者按照指定精度进行截断。在给定的标题和描述中,我们关注的是一个特定的MATLAB函数,即`truncate`,它用于截断一个给定...

    truncation:多边形的截断

    在IT领域,尤其是在Web开发中,SVG(Scalable Vector Graphics)是一种常用的技术,用于创建矢量图形。本文将深入探讨“截断”这一概念,特别是在多边形处理中的应用,以及如何使用React来实现SVG图标的构建。...

    ngx-line-truncation:角线截断解决方案。 通过给定的行号截断文本块,并在末尾添加省略号

    NGX线截断Ngx Line Truncation是Angular的行截断实现,可通过用户定义的行号截断文本。 () 除行截断外,此软件包还进行了一些性能优化,不仅提高了可用性,而且还提高了Angular平台的可靠性。 它使用重试逻辑来...

    java中常见的错误.docx

    3. 数据类型不匹配:当尝试将不兼容的数据类型插入到数据库中时,如`Data truncated for column 'gatheringMoney' at row 1`和`Data truncation: Out of range value adjusted for column 'amount' at row 14`,表明...

    MySQL关于sql_mode解析与设置讲解

    昨晚在往MySQL数据库中插入一组数据时,出错了!数据库无情了给我报了个错误:ERROR 1365(22012):Division by 0;意思是说:你不可以往数据库中插入一个 除数为0的运算的结果。于是乎去谷歌了一番,总算是明白了...

    Survival Analysis_Techniques for Censored and Truncated Data_Book

    本书《Survival Analysis: Techniques for Censored and Truncated Data》由John P. Klein和Melvin L. Moeschberger合著,第二版进一步扩展和完善了第一版的内容。 #### 二、删失与截尾的概念 **删失(Censoring)**...

    Mysql中文乱码问题完美解决方案.docx

    - `com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column` 错误表示数据长度超过了列的允许长度,这通常不是字符集问题,而是字段长度不足。需检查对应列的定义并调整其大小。 7. **...

    sql server导入oracle数据库.rar

    3. **导入到Oracle**:Oracle提供了多种导入工具,如SQL*Loader、Data Pump(expdp/impdp)和SQL Developer。SQL*Loader适合处理大量数据,Data Pump则用于大规模的数据迁移。SQL Developer是一款图形界面工具,适合...

    Applied Numerical Methods with MATLAB for Engineers and Scientists

    Title: Applied Numerical Methods with MATLAB for Engineers and Scientists, 4th Edition Author: Steven Chapra Length: 720 pages Edition: 4 Language: English Publisher: McGraw-Hill Education Publication...

    Image compression using modified block truncation coding

    图像编码,this paper presents a modified block truncation coding(BTC) algorithm for image compression.Similar block in an image are mergrd intoa cluster and represented with the cluster center.

    Oracle sqldeveloper without jdk (win+linux)

    - Bug 5085334: If a numeric value is opened for editing in the Data tab for the first time after the table is refreshed, the decimal separator will always become dot, irrespective of the locale ...

    mysql乱码问题解决方案

    **问题1:** 当插入数据时出现“Data truncation: Data too long for column”错误。 **解决方法:** - 检查字段长度是否足够。 - 考虑增加字段的长度或者调整数据以适应现有的字段长度。 **问题2:** 应用程序抛...

    Essential C

    The document highlights the importance of understanding type promotion and truncation, which occur when performing operations between different data types. For instance, an operation involving an `...

    Missing and Modified Data in Nonparametric Estimation with R

    This book presents a systematic and unified approach for modern nonparametric treatment of missing and modified data via examples of density and hazard rate estimation, nonparametric regression, ...

Global site tag (gtag.js) - Google Analytics