How do you store cell phone numbers in a database?

前端 未结 3 722
无人共我
无人共我 2021-01-07 18:36

With the age of text messages and things like that, what\'s a good way to store phone numbers in a database?

In the USA, text messages are handled by phone numbers b

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-07 19:20

    Generally as text, you don't need all the fancy formatting, unless you need it to parse numbers from different countries that you can't distinguish otherwise. You can always add the formatting later on.

    Not as a number!!! Leading zeros may be problematic.

提交回复
热议问题