我是 Perl 的初学者,我遇到了这个问题:
my $query = qq {select a1, count(b2), c3 from tab where d1 = ? group by a1, c3 };
my $res = $dbh->selectall_hashref( $query,{ Slice => {} }, $id->[0]);
执行代码时,我得到:
DBI::st=HASH()->_prepare(...): attribute parameter is not a hash at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/DBD/mysql.pm line 224.
我做错了吗?
感谢您的关注。