Reputation: 145
I am unsure of which data types to use for the following attributes:
A phone number (which is made up of 10 numbers)
A client name
A numeric product ID that acts as a Primary Key
The location/state of the client (which only has 1 out of 8 possible values)
Im not sure of whether to use CHAR or VARCHAR for some of these, or if there is another type I should use.
Upvotes: 1
Views: 724
Reputation: 239
Note: You should use "varchar" for all you needs.
Upvotes: 2
Reputation: 81
Understanding the difference between Char, Varchar will help you out.
Upvotes: 1
Reputation: 782
Upvotes: 1