Which data type would be most appropriate for storing a person's phone number in a database?

  • Boolean
  • Float
  • Integer
  • String
Storing a person's phone number typically requires a text data type like String since phone numbers can include special characters like dashes and parentheses. Integer is used for whole numbers, Float for decimal numbers, and Boolean for true/false values.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *