Data truncated for column?

后端 未结 7 1295
一向
一向 2020-11-30 03:00

After changing the data type of a MySql column in order to store Twilio call ids (34 char strings), I try to manually change the data in that column with:

up         


        
相关标签:
7条回答
  • 2020-11-30 03:25

    Your problem is that at the moment your incoming_Cid column defined as CHAR(1) when it should be CHAR(34).

    To fix this just issue this command to change your columns' length from 1 to 34

    ALTER TABLE calls CHANGE incoming_Cid incoming_Cid CHAR(34);
    

    Here is SQLFiddle demo

    0 讨论(0)
提交回复
热议问题