Sie müssen DATE
verwenden Funktion um den Spaltennamen DateTime
.
SELECT DATE(datetime) as DATE, SUM(`count`) totalCOunt
FROM tableName
GROUP BY DATE(datetime)
Sie müssen DATE
verwenden Funktion um den Spaltennamen DateTime
.
SELECT DATE(datetime) as DATE, SUM(`count`) totalCOunt
FROM tableName
GROUP BY DATE(datetime)