Data truncation: Data truncated for column/data too long for column Solution

Source: Internet
Author: User
Tags truncated

Today, I am working on a website project. This error is found: Data truncation: data too long for column 'dcontent' at Row 1. I checked the following. It is found that the length of the table I inserted into the text box is greater than 65535, that is, the default length of text .. Later, I changed the field type of "DContent" to mediumtext, so that this error will not occur. Therefore, if someone finds this error, do not forget to check whether the size of the entered paragraph below exceeds the specified length.

The error "Data truncation: data too long for column 'dcontent' at Row 1" is displayed. I checked the following on the Internet: Yo is usually caused by two reasons ..

1. The length of the field DContent is insufficient ..

For the solution, refer to what I mentioned above.

2. This may also be caused by inconsistent default codes of JSP pages, backend and database. For specific solutions, refer to the following website...

Http://idealpark.spaces.live.com/Blog/cns! 5c74a0cce6e6a884! 245. Entry

 

Http://hi.baidu.com/overmindgc/blog/item/c0c768062ab86b7e03088166.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.