![]() |
|< 1 2 3 4 >| | ![]() |
31 Einträge, 4 Seiten |
QuoteSELECT count(*) FROM userlog WHERE TO_DAYS(NOW()) - TO_DAYS(datestamp) <= 30 GROUP BY datestamp
select count(id) from table group by substring(datestamp(1,10));
select count(id) from table group by substring(datestamp(1,10));
select count(id) from table group by substring(datestamp,1,10);
select count(id) from table group by substring(datestamp,1,10);
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;
![]() |
|< 1 2 3 4 >| | ![]() |
31 Einträge, 4 Seiten |