Syntactic Confectionery Delight | |
PerlMonks |
Re^3: Database storage confusionby Coruscate (Sexton) |
on Mar 09, 2003 at 00:37 UTC ( [id://241459]=note: print w/replies, xml ) | Need Help?? |
Yes, that's exactly what merlyn is trying to get across. A database is pretty useless if you are only storing a single value. Much easier to simply manage a flat file and be able to read it into an array. A database becomes useful when you need to associate one piece of data with another. For your example, you are not associating anything with the name. All you have is a name. No age, email adress, phone number, or anything related to the user. If you did have anything, you'd then be using something like this:
For a single value, I'd probably use something like this. It could use a little more work :)
If the above content is missing any vital points or you feel that any of the information is misleading, incorrect or irrelevant, please feel free to downvote the post. At the same time, please reply to this node or /msg me to inform me as to what is wrong with the post, so that I may update the node to the best of my ability.
In Section
Seekers of Perl Wisdom
|
|