input type text field giving fixed error 2147483647

前端 未结 1 390
名媛妹妹
名媛妹妹 2021-01-23 16:31

I have input type field as mobile but every time it feeds in this particular value in my database ie 2147483647 irrespective whatever values we fill

<         


        
相关标签:
1条回答
  • 2021-01-23 17:23

    Your column in a signed INT which holds integers up to 2147483647. Your value is clearly larger than that. You will need to use BIGINT or VARCHAR for that data depending on what it represents (phone numbers should be stored as VARCHAR/CHAR since you are not going to be doing math with them).

    See Integer Types (Exact Value)

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