Is there a standard for storing normalized phone numbers in a database?

前端 未结 18 1506
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-28 19:23

What is a good data structure for storing phone numbers in database fields? I\'m looking for something that is flexible enough to handle international numbers, and also som

18条回答
  •  盖世英雄少女心
    2020-11-28 19:29

    I think free text (maybe varchar(25)) is the most widely used standard. This will allow for any format, either domestic or international.

    I guess the main driving factor may be how exactly you're querying these numbers and what you're doing with them.

提交回复
热议问题