MySQL Data Truncation Error

前端 未结 5 2044
面向向阳花
面向向阳花 2020-12-06 06:26

I\'m working with a fairly simple database, from a Java application. We\'re trying to insert about 200k of text at a time, using the standard JDBC mysql adapter. We interm

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-06 06:53

    I just hit this problem and solved it by removing all the non-standard ascii characters in my text (following the UTF-8 advice above).

    I had the problem on a Debian 4, Java 5 system; but the same code worked fine with Ubuntu 9.04, Java 6. Both run MySql 5.

提交回复
热议问题