![]() |
![]() |
|
|
|||||||
| Programmierung Rat & Tat für Programmierer |
|
|
Themen-Optionen | Ansicht |
|
|
#6 |
|
Master
![]() |
Ich wäre für eine etwas kürzere Variante
"SELECT COUNT(*) c, SUBSTR(Counter_Time, 1,10) t ". "FROM `tabelle` ". "GROUP BY TO_DAYS(Counter_Time) ". "ORDER BY c ASC " sofern Counter_Time als Datetime gespeichert ist, sonst bekommst für das substr nix richtiges |
|
|
|
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|