Phone Number Columns in a Database

后端 未结 10 1028
暗喜
暗喜 2021-01-01 15:32

In the last 3 companies I\'ve worked at, the phone number columns are of type varchar(n). The reason being that they might want to store extensions (ext. 333). But in every

10条回答
  •  被撕碎了的回忆
    2021-01-01 15:56

    I'd opt to store the digits as a string and add the various "()" and "-" in my display code. It does get more difficult with international numbers. We handle it by having various "internationalized" display formats depending on country.

提交回复
热议问题