Mailinglisten-Archive |
Hi,
was verstehe ich in Kapitel 7.4.13 des MySQL Manuals bitte falsch? Dort
steht:
select COUNT(DISTINCT results) from student;
In meinem Skript mache ich nun
select count( distinct ID ) as result from table;
Als Fehlermeldung bekomme ich:
Database error: Invalid SQL: select count( distinct ID ) as result
from phpOpenCounter_accesslog
MySQL Error: 1064 (You have an error in your SQL syntax near
'distinct ID ) as result from
phpOpenCounter_accesslog'
at line 1)
Session halted.
Ich möchte an die Anzahl der Zeilen kommen, welche unterschiedliche
Einträge im Feld ID haben.
AHA
--
Sebastian Bergmann
Homepage : http://gravedancer.rc5.de \ eMail: sebastian.bergmann_(at)_web.de
Fax/Voice: +49 180 50 52 54 04 86 39 \ Mobil: +49 170 125 85 78
php::bar PHP Wiki - Listenarchive