Re: ODBC

From: Date: Sun, 18 Nov 2001 15:23:07 +0000
Subject: Re: ODBC
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-14424@lists.php.net to get a copy of this message
Alfarees, To get the first 5 in the order they were added to the database ... select * from tablename limit 5; or, for the 5 topmost, highest value .... select * from tablename where somefield.value > somecriteria order by tablename.somefield limit 5 Now check docs for exact synatx - TOP may be used in place of LIMIT HTH - Miles Thompson PS If you are not familiar with SQL, there are a number of tutorials on the web which will be well worth a couple of hours of your time. The DevShed and WebMonkey sites come to mind. /mt At 07:33 AM 11/18/01 +0000, alfareees alfareees wrote:
how can I take the first 5 records from access xp by odbc or PHP ? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.db (#14424) next »