"Data too long for column" Displayed When Data Is Inserted into an RDS for MySQL Instance
Scenario
The following message is displayed when data is inserted into an RDS for MySQL instance through JDBC:
Data truncation: Data too long for column 'field_name'
Troubleshooting
Check whether the sql_mode parameter is set to STRICT_TRANS_TABLES at the session level.
STRICT_TRANS_TABLES indicates the strict mode. If sql_mode is set to STRICT_TRANS_TABLES, errors about long fields can be reported.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot