Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to find the highest number in a mysql table
by igelkott (Priest) on May 10, 2008 at 01:40 UTC | |
by Anonymous Monk on May 10, 2008 at 01:43 UTC | |
by ysth (Canon) on May 10, 2008 at 02:03 UTC | |
by sulfericacid (Deacon) on May 10, 2008 at 02:42 UTC | |
by pc88mxer (Vicar) on May 10, 2008 at 06:24 UTC | |
by CountZero (Bishop) on May 10, 2008 at 15:55 UTC | |
Re: How to find the highest number in a mysql table
by sulfericacid (Deacon) on May 10, 2008 at 00:53 UTC | |
by kyle (Abbot) on May 10, 2008 at 02:03 UTC | |
Re: How to find the highest number in a mysql table
by Anonymous Monk on May 10, 2008 at 15:01 UTC |