Mysql Datatype for US Zip (Postal Codes)

前端 未结 3 423
轮回少年
轮回少年 2021-02-05 12:46

I am writing a web application, that is US specific, so the format that other countries use for postal codes are not important. I have a list of us zip codes that i am trying to

3条回答
  •  野性不改
    2021-02-05 13:06

    go with your medium INT(5) ZEROFILL, it should add the leading zeros for you. No need to impact the index and performance on a formatting issue.

提交回复
热议问题