in reply to Re^2: Inserting Hash Information Into MySQL
in thread Inserting Hash Information Into MySQL
So you cannot simply insert them into the table as is.
I am not sure what you are trying to achieve but I assume you want something like this:
while(($key, $value) = each(%hash)){ for my $stat_value (@$value) { $sth->execute($key, $stat_value); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Inserting Hash Information Into MySQL
by Anonymous Monk on Jun 20, 2012 at 17:23 UTC |