Data truncated for column ‘attribute‘ at row 1;

It may be caused by data type inconsistency. Here I set the attribute field in the database as an enumeration type. As a result, I forgot about this when testing the interface and assigned a value to the attribute casually, which caused this error. Changing the test value to a field within the scope of the enum works fine.

Guess you like

Origin blog.csdn.net/neowell/article/details/129841865