It looks like you are selecting the literal values 'Field 1', 'Field 2' etc when you should be selecting columns.
I don't have time right now to test, but try this line:
my $rs = $dbh->selectall_arrayref("SELECT [" . join("],[", @fromFields +) . "] FROM $fromTable");
Notice I've replaced your apostrophes with square brackets.
In reply to Re: DBI selectall_arrayref
by EdwardG
in thread DBI selectall_arrayref
by THuG
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |