Re: selecting just one row

From: Date: Mon, 11 Sep 2000 02:03:58 +0000
Subject: Re: selecting just one row
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-2778@lists.php.net to get a copy of this message
On Sun, 10 Sep 2000, Mark McCray wrote: > Hey there, > I need help on how to do something. > I need to do a select statement and grab only the very first record it > returns into an array. > > How would I do this in php? > > Marky In MySQL and PostgreSQL, there is a LIMIT clause where you can tell the database the maximum number of rows to return. Look in the doc for your database system for the LIMIT clause. This is *not* a PHP thing at all.

« previous php.db (#2778) next »