Re: First and Last ID of a table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<tg-php@xxxxxxxxxxxxxxxxxxxxxx> wrote in message 
news:20070711201352.905EE10A008@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> SELECT MIN(id), MAX(id) FROM mytable

As an aside, is you are using associative arrays, be sure to use the 
following keys:

$array['MIN(id)'] and $array['MAX(id)']

Just something I figured out recently :)

Matt 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux