Help for this page

Select Code to Download


  1. or download this
    my $query = 'INSERT INTO table (' . join(',' => map { "col$_" } 1 .. $
    +cols)
                . ') VALUES (' . join(',' => ('?') x $cols) . ')';
    
  2. or download this
    my $cols = @{ $csv->getline($fh) };