“Data too long for column” - why?

前端 未结 12 675
Happy的楠姐
Happy的楠姐 2020-12-12 19:47

I\'ve written a MySQL script to create a database for hypothetical hospital records and populate it with data. One of the tables, Department, has a column named Description,

12条回答
  •  天涯浪人
    2020-12-12 20:00

    Very old question, but I tried everything suggested above and still could not get it resolved.

    Turns out that, I had after insert/update trigger for the main table which tracked the changes by inserting the record in history table having similar structure. I increased the size in the main table column but forgot to change the size of history table column and that created the problem.

    I did similar changes in the other table and error is gone.

提交回复
热议问题