19
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

データベースに登録する時の電話番号の型は数値がいいのか?

Last updated at Posted at 2017-12-02

データベースに登録する時の電話番号の型は数値がいいのか?
についてですが

電話番号はハイフンの位置なども含まれる場合があるので文字列型のほうが良い。
国際電話番号(+81等)の管理をする場合にも同様です。

ですので、文字列でvarchar(0~255)が良いと思われる。

19
7
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?