問題:
What's the longest possible worldwide phone number I should consider in SQL varchar(length)
for phone.我應該在電話的 SQL varchar(length)
考慮最長的全球電話號碼是多少。
considerations:考慮:
- + for country code + 國家代碼
- () for area code () 爲區號
- x + 6 numbers for Extension extension (so make it 8 {space}) x + 6 個數字用於擴展擴展名(因此將其設爲 8 {space})
- spaces between groups (ie in American phones +x xxx xxx xxxx = 3 spaces)組之間的空格(即在美國電話中 +x xxx xxx xxxx = 3 個空格)
- here is where I need your help, I want it to be worldwide這就是我需要你幫助的地方,我希望它遍佈全球
Consider that in my particular case now, I don't need cards etc. number begins with country code and ends with the extension, no Fax/Phone etc. comments, nor calling card stuff needed.考慮到我現在的特殊情況,我不需要卡片等號碼以國家代碼開頭並以擴展名結尾,沒有傳真/電話等評論,也不需要電話卡內容。
解決方案:
參考一: https://en.stackoom.com/question/32El參考二: https://stackoom.com/question/32El