Re: Fastest way to get table records' number

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

 



On Wed, Mar 19, 2008 at 1:53 PM, David Giragosian <dgiragosian@xxxxxxxxx> wrote:
> Doesn't the 1 in "Select count(1) from table" refer to the first
>  column in the table, like order by 1 asc?

    No, it evaluates to Boolean TRUE.  It's the same as the one (1) here:

    SELECT * FROM table WHERE 1;

-- 
</Daniel P. Brown>
Forensic Services, Senior Unix Engineer
1+ (570-) 362-0283

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux