Leser: 1
2 Einträge, 1 Seite |
1 2 3
$where{datum} = { -between => ['DATESUB(CURDATE(), INTERVAL 6 DAY', 'CURDATE()'] };
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/usr/bin/perl use strict; use warnings; use SQL::Abstract; my $sql = SQL::Abstract->new; my %where = ( datum => { -between => ['(DATESUB(CURDATE(), INTERVAL 6 DAY)', 'CURDATE()'] } ); my ($sth, @bind) = $sql->select('table', 'id', \%where); print $sth,"\n";
2 Einträge, 1 Seite |