Thread GROUP BY Timestamp ?: Tag bei Timestamp herausfinden (30 answers)
Opened by Froschpopo at 2004-08-05 08:00

Froschpopo
 2004-08-05 19:01
#32520 #32520
User since
2003-08-15
2653 Artikel
BenutzerIn
[default_avatar]
also, wenn ich Deinen Code nehme, mit o.g. Datensätzen, dann erhalte ich als Antwort: 1
hier mein Script:
Code: (dl )
1
2
3
4
5
6
7
8
9
my $sth_prepare = $dbh1->prepare("select count(id) from userlog group by substring(datestamp,1,10)");
$sth_prepare->execute() or die $DBI::errstr;

print "Content-Type: text/html\n\n";
my $list;
for ($sth_prepare->fetchrow_array()) {
  $list .= "$_<br>";
}
print $list;
\n\n

<!--EDIT|Froschpopo|1091718177-->

View full thread GROUP BY Timestamp ?: Tag bei Timestamp herausfinden