phpbar.de logo

Mailinglisten-Archive

DISTINCT Count

DISTINCT Count

Siisl Oasi mysql_(at)_lists.phpcenter.de
Mon, 9 Apr 2001 16:37:24 +0200


Hallo Juri, hallo Liste,

select count(*)
from tbl
group by col_1, col_2, col_3
having count(*)>1;

select distinct col_1
from tbl
group by col_1
having count(*)>1;


-- 
Salute,
 Siisl


---
*** Weitere Infos zur Mailingliste und MySQL unter http://www.4t2.com/mysql 



php::bar PHP Wiki   -   Listenarchive