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

renee
 2004-08-05 19:07
#32522 #32522
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
dein code muss so aussehen:
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;
while(my ($count) = $sth_prepare->fetchrow_array()) {
$list .= "$count<br>";
}
print $list;
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

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