Varchar issue on Mysql 2147483647

后端 未结 3 639
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-20 13:07

Having the 2147483647 MYSQL issue.

When inserting an 11 digit number in the telephone field i am getting this number in return saved in the DB: 21

相关标签:
3条回答
  • 2021-01-20 13:23

    Check Integer Types (Exact Value) - INTEGER, INT, SMALLINT, TINYINT, MEDIUMINT, BIGINT and answer

    0 讨论(0)
  • 2021-01-20 13:39

    2147483647 is the largest int value for mysql. Just change the type from int to bigint.

    0 讨论(0)
  • 2021-01-20 13:45

    solution : just change the type from int to bigint or varchar to bigint.

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