in reply to Re^4: Text::CSV not able to execute insert query dynamically.
in thread Text::CSV not able to execute insert query dynamically.
except that in the latter case, you'll be carrying around two more variables, one of which has a very generic name.my $count = @$columns; my $qs = join ',', ('?') x $count; my $sql = <<EOSQL; INSERT INTO VoucherMRPDataTable_Frt_TariffModel VALUES ($qs) EOSQL
Does that clarify things?
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|