Allow number to start with ZERO when stored in mysql integer field

前端 未结 7 2140
甜味超标
甜味超标 2021-01-02 01:42

I need to store phone numbers starting with 0 but whenever i try to store this in MySql table the starting ZERO is removed because no number start with Zero actually.

<
相关标签:
7条回答
  • 2021-01-02 02:38

    Phone numbers aren't integers and you will only end up with problems trying to store them as integers, store them as strings instead.

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