wahsaga: datensätze in einer tabelle zählen

Beitrag lesen

hi,

SELECT count( * ) AS anzahl FROM xy

wobei noch erwähnt werden sollte, dass eine aggregatfunktion wie COUNT() in SQL eigentlich auch ein GROUP BY erfordern würde - lediglich MySQL ist hier recht gutmütig und nimmt COUNT auch ohne gruppierung an.

gruß,
wahsaga

--
I'll try being nicer if you'll try being smarter.