go ahead... be a heretic | |
PerlMonks |
How to find the highest number in a mysql tableby Anonymous Monk |
on May 10, 2008 at 00:48 UTC ( [id://685804]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm starting a very basic image gallery as a personal project for all my photos I've taken. I have the auto id increment set up on my mysql database so each upload has a unique identifier. My question is, what's the easiest (shortest) way to determine the highest number already in the database + 1 so I can number the next picture uploaded? I know I could hack this out in a Perlish way but I'm hoping to do things, well, a little more natural without looping through the entire structure.
Back to
Seekers of Perl Wisdom
|
|