rethaew has asked for the wisdom of the Perl Monks concerning the following question:
#to insert a line my $stmt = 'INSERT INTO some_table (' . join(',', keys %data_to_insert +) . ') VALUES (' . join(',', ('?') x keys %data_to_insert) . ')'; $dbh->do( $stmt, undef, values %data_to_insert);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Update mysql row with a hash
by stefbv (Priest) on Feb 11, 2010 at 06:35 UTC | |
|
Re: Update mysql row with a hash
by desemondo (Hermit) on Feb 11, 2010 at 01:05 UTC | |
by afoken (Chancellor) on Feb 11, 2010 at 19:34 UTC | |
|
Re: Update mysql row with a hash
by tstock (Curate) on Nov 04, 2017 at 03:59 UTC |