MySQL Error 1264: out of range value for column

后端 未结 5 2141
谎友^
谎友^ 2020-11-29 02:51

As I SET cust_fax in a table in MySQL like this:

cust_fax integer(10) NOT NULL,

and then I insert value like this:

<         


        
5条回答
  •  爱一瞬间的悲伤
    2020-11-29 03:20

    You can also change the data type to bigInt and it will solve your problem, it's not a good practice to keep integers as strings unless needed. :)

    ALTER TABLE T_PERSON MODIFY mobile_no BIGINT;
    

提交回复
热议问题