#$bet = "and CONVERT(CHAR(10),tdate,101) between '?' and '?'";
try
my @args; ... $bet = "and CONVERT(CHAR(10),tdate,101) between ? and ?"; # ^ ^ # not quoted push @args, $fromdate, $today;
And then pass @args to the exec_select call.
In reply to Re: Perl using SQL placeholders issue
by moritz
in thread Perl using SQL placeholders issue
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |