Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm not completely familiar with mysql myself but a SOPW that was just posted about this database sparked a question.
The above is a piece of code that was given. Now the OP of that post used while($sth->fetch) on a binded column. Most of the samples I've seen/used have been this way.SELECT * FROM images WHERE id > ? LIMIT 1
How would you pull back just one chunk of data? Instead of looping like they do it?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Single mysql query
by ikegami (Patriarch) on May 31, 2008 at 06:02 UTC | |
Re: Single mysql query
by pc88mxer (Vicar) on May 31, 2008 at 06:09 UTC | |
Re: Single mysql query
by jaldhar (Vicar) on May 31, 2008 at 06:08 UTC |
Back to
Seekers of Perl Wisdom