in reply to inserting a column into mySQL DB with perl
There's no real reason to use ids. There once may have been a reason, but certainly not in the case of small text. They just add a lot of useless lookups that could better be served by using the text itself, and confusing people who will just end up remembering a bunch of numbers. Instead, consider Car_Type(Name) and Car(Name, Size).
Though, depending on what it is for, it might be better to add make, model, and possibly year, just in case. In which case, a code would work beautifully: Car_Type(Name), Car(Code, Make, Model, Year, Size).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: inserting a column into mySQL DB with perl
by diyaz (Beadle) on Jan 22, 2016 at 22:11 UTC | |
by chacham (Prior) on Jan 25, 2016 at 15:37 UTC |