![]() |
|
"be consistent" | |
PerlMonks |
Re: Going to first record on a record set in DBIby Abigail-II (Bishop) |
on Jul 21, 2003 at 12:22 UTC ( #276234=note: print w/replies, xml ) | Need Help?? |
Indeed. In a relational way of thinking, it only make sense
to talk about the "first N rows", if you have a query with
an ORDER BT clause. If you want the "first row" given some
ordering, you can often do that with a WHERE clause.
Say:
can also be written as
That is, you ask for the record with minimum age. Abigail
In Section
Seekers of Perl Wisdom
|
|