|XP is just a number|
(Ovid: Death to Select Star!) Re: MySQL DBI Helpby Ovid (Cardinal)
|on Sep 22, 2001 at 21:51 UTC||Need Help??|
On a note totally unrelated to your question, I couldn't help but notice your SQL:
I do a lot of heavy database work and I've been bitten by this type of SQL many times. As a general rule, when trying to write maintainable code, it's a good idea to be very specific about what you will allow. For example, consider the following SQL statement:
That SQL statement has a variety of benefits:
If you're just writing a small program, or use very simple logic as what you have above, these issues may be less likely to impact you. However, as you do more and more work with databases, getting in the habit of stating explicitly what you want will reap tremendous rewards.
Vote for paco!
The title of this node is a reference to Death to Dot Star!, for those who may be confused.
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.