kyfamilies
Technical User
I'm pretty new to MySQL and have been scouring the internet looking for all information and opinions on using ENUM fields. I'm a volunteer project coordinator for a VERY large project which will contain millions of records so I want to set it up correctly.
The database contains birth, marriage and death information.
Questions:
1. I've seen several opinions that it is preferable to use enums whenever possible as increasing the number of tables will slow down the database. True or false?
2. Is it a bad idea to use enum fields for numeric values (we are currently looking at days of the month)? Would it be very confusing to have numbers 01-31 in the enum field?
3. The MySQL manual states the storage requirement for an enum field is 1 byte up to 255 members. Does this mean the table stores the member number instead of the member name? In other words, if I have a enum field that has the names of 120 counties in a state, will the table store the county names or the member number?
4. If I use forms to gather the information, should I use the member name or the member number for the output for an enum field?
Thanks so much for your tolerance of yet another newbie!
The database contains birth, marriage and death information.
Questions:
1. I've seen several opinions that it is preferable to use enums whenever possible as increasing the number of tables will slow down the database. True or false?
2. Is it a bad idea to use enum fields for numeric values (we are currently looking at days of the month)? Would it be very confusing to have numbers 01-31 in the enum field?
3. The MySQL manual states the storage requirement for an enum field is 1 byte up to 255 members. Does this mean the table stores the member number instead of the member name? In other words, if I have a enum field that has the names of 120 counties in a state, will the table store the county names or the member number?
4. If I use forms to gather the information, should I use the member name or the member number for the output for an enum field?
Thanks so much for your tolerance of yet another newbie!