if we see logically mobile number consists of all numbers and not any special character or letter so it should be saved in integer category......but it's up to the user they can save it into a string format too coz they are not going to perform operations on mobile number it,s more of a personal data than an mathematical number.
hope it helps :)
I would use a string. People tend to include spaces or dashes in their numbers, or for international numbers a + with country code. Some people put brackets around (area code) and most importantly, a lot of phone numbers without country code start with a 0.
int 0612345678 would get stored as 612345678 with the 0 getting dropped.
Too much room for variation and depending on what you want to do with the phone numbers, save yourself from going through the effort of making it an int/long and making a regex for all the cases I mentioned.
If you go for an int you should make sure it can store like 32 bits so depending on your language an int is probably fine unless a long is 32 bit for historic reasons in a dinosaur language.
i dont think we can use int for storing phone nos because here in India we have phone no starting with 0 and we know that will give error syntactically or number systems way.
String are used for storing phone nos.