error 1265. Data truncated for column when trying to load data from txt file

后端 未结 8 2555
萌比男神i
萌比男神i 2020-12-18 18:52

I have table in mysql table table looks like

create table Pickup
(
PickupID int not null,
ClientID int not null,
PickupDate date not null,
PickupProxy  va         


        
8条回答
  •  长情又很酷
    2020-12-18 19:14

    I have met this problem with a column that has ENUM values('0','1').
    When I was trying to save a new record, I was assigning value 0 for the ENUM variable.

    For the solution: I have changed ENUM variable value from 0 to 1, and 1 to 2.

提交回复
热议问题