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

前端 未结 7 2192
甜味超标
甜味超标 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:27

    change data type to unsigned-zerofill whatever you are using, float, int, decimal(6,2)... only edit the field to unsigned-zerofill

提交回复
热议问题