MySQL對資料表插入值時 :

# INSERT INTO 資料表名 VALUES ("3172978990") ;



出現以下錯誤 : 

# 1264, "Out of range value for column '欄位名' at row 1"

 

原因 : 

MYSQL 的資料型態 INT 有一定範圍 : 

擷取選取區域_278.png

 

解決辦法 : 

# ALTER TABLE 資料表名 MODIFY 欄位名 BIGINT;

 

參考資料 :

https://stackoverflow.com/questions/14284494/mysql-error-1264-out-of-range-value-for-column

創作者介紹
創作者 Rex-Software-Blog 的頭像
Rex

Rex-Software-Blog

Rex 發表在 痞客邦 留言(0) 人氣( 563 )