At 8:32 AM +0800 3/29/01, <[EMAIL PROTECTED]> wrote:
>Hi, I am trying to count all the distinct id numbers in a column but I
>just can't figure it out... What would be the appropriate select statement
>for this, thanks,

SELECT COUNT(DISTINCT id) FROM tbl_name

-- 
Paul DuBois, [EMAIL PROTECTED]

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to