Date: 07/17/02
- Next message: 1LT John W. Holmes: "Re: [PHP] $HTTP_SESSION_VARS ? Have I got it wrong"
- Previous message: 1LT John W. Holmes: "Re: [PHP] querying for one specific row number"
- In reply to: René Moonen: "Re: [PHP] querying for one specific row number"
- Next in thread: 1LT John W. Holmes: "Re: [PHP] querying for one specific row number"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Off topic...
> >So let's say my table had 5 rows (entries) in it, and I want to pull
> >just row #2, how would I do this??
> SELECT * FROM table LIMIT 1,1;
Technically, without an ORDER BY in your query, the database can return a
different row each time with this query. Without an ORDER BY, how do you
define row #2? The database just stores the data in any way it wants to and
doesn't order it unless you tell it to.
---John Holmes...
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: 1LT John W. Holmes: "Re: [PHP] $HTTP_SESSION_VARS ? Have I got it wrong"
- Previous message: 1LT John W. Holmes: "Re: [PHP] querying for one specific row number"
- In reply to: René Moonen: "Re: [PHP] querying for one specific row number"
- Next in thread: 1LT John W. Holmes: "Re: [PHP] querying for one specific row number"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

