in reply to Re^2: DBI and arrays
in thread DBI and arrays
First of all, you are preparing a statement handle, and then not using it (but using the database handle instead). Second, DBI does not expect named parametres (at least the way you're writing your placeholders), nor will that function accept an array of hashrefs. Instead, something like this would work:my $sth = $dbh->prepare($SQLQueryString); my $array_ref = $dbh->selectall_arrayref( $SQLQueryString, { Slice => +{} }, @SQLvars );
$aref = $dbh->selectall_arrayref($sql, {stuff => 'here'}, 'TESTA1', 'T +ESTA2', 'TESTA3');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: DBI and arrays
by Anonymous Monk on Jan 17, 2012 at 12:46 UTC |