Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have an array containing the values of colx,y and z and I want to run this query for each of these sets of values. Then I want to store the results from all these queries in an array. Here is my perl effortselect cola, colb, colc from table-name where colx=? and coly=? and colz=?"
Where @SQLBindVars is an array containing my bind variables like I described above. The result in my error_log ismy @Queryresults = @{ $sth->selectall_arrayref( $SQLQueryString, @SQLB +indVars) };
Can anyone show me the correct way of doing this, please lt me know if my question is not clear.Can't bind a reference (HASH(0x92705c))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI and arrays
by moritz (Cardinal) on Jan 17, 2012 at 11:05 UTC | |
by Anonymous Monk on Jan 17, 2012 at 11:59 UTC | |
by tweetiepooh (Hermit) on Jan 17, 2012 at 13:27 UTC | |
by Anonymous Monk on Jan 17, 2012 at 12:34 UTC | |
by Anonymous Monk on Jan 17, 2012 at 12:46 UTC | |
by Anonymous Monk on Jan 17, 2012 at 11:44 UTC |