Thread GROUP BY Timestamp ?: Tag bei Timestamp herausfinden
(30 answers)
Opened by Froschpopo at 2004-08-05 08:00
ne also tut mir leid, so klappt das nicht.
ich möchte also z.B. wissen, wieviele Einträge gestern und vorgestern getätigt wurden: Code: (dl
)
1 my $sth_prepare = $dbh1->prepare("SELECT datediff(now(),datestamp) AS days_ago, count(datediff(now(),datestamp) ) AS count_days FROM userlog group by 2"); warum krieg ich dann: You have an error in your SQL syntax near '(now(),timestamp) AS days_ago, count(datediff(now(),timestamp) ) AS count_days, ' at line 1 at /usr/local/httpd/cgi-bin/diagramm.pl line 30. ???\n\n <!--EDIT|Froschpopo|1091706807--> |