phone number should be a string or some numeric type that have capacity to save phone number?

前端 未结 4 1463
忘了有多久
忘了有多久 2021-01-01 23:09

We want to store 10 digit mobile number i.e.9999999999. Should it be numeric or string datatype? We don\'t want to do any calculative or manipulation operation on this

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-01 23:34

    It must be a stringas phone number will exceed the limit of int or even long. So for handling those scenario string is always prefered.

提交回复
热议问题