Is there a reason why you cannot put LIMIT 1 (or TOP 1 or whatever your server dialect requires) into your SQL query?
Anyway, $sth->finish discards the rest of the rows.
In reply to Re: returning first row of SQL query
by Anonymous Monk
in thread returning first row of SQL query
by whittick
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |