What's the longest possible worldwide phone number I should consider in SQL varchar(length) for phone

前端 未结 5 1573
星月不相逢
星月不相逢 2020-11-30 17:35

What\'s the longest possible worldwide phone number I should consider in SQL varchar(length) for phone.

considerations:

  • + for country code
5条回答
  •  攒了一身酷
    2020-11-30 18:29

    Well considering there's no overhead difference between a varchar(30) and a varchar(100) if you're only storing 20 characters in each, err on the side of caution and just make it 50.

提交回复
热议问题