MySQL Forums
Forum List  »  Performance

Re: select count(distinct)
Posted by: heidi savin
Date: July 07, 2005 05:14AM

I did run it multiple times in a row and it doesn't make a difference. The select query that you proposed doesn't work because it just prints out a 1 for each occurence of the distinct col1 values. Thanks for the suggestion though. I guess I'll keep using my hack since it's significantly faster than the count(distinct ) method

Options: ReplyQuote


Subject
Views
Written By
Posted
97291
July 05, 2005 07:23PM
28758
July 05, 2005 07:37PM
22384
July 06, 2005 05:44AM
19287
July 07, 2005 06:13AM
17256
July 07, 2005 09:11AM
17302
July 07, 2005 10:48AM
9994
July 07, 2005 10:51AM
8820
July 08, 2005 05:27AM
9923
July 08, 2005 05:48AM
8115
August 19, 2005 05:22AM
8980
July 06, 2005 02:11AM
8307
July 06, 2005 05:33AM
7331
July 06, 2005 06:13PM
Re: select count(distinct)
7267
July 07, 2005 05:14AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.