Help for this page

Select Code to Download


  1. or download this
    my @FIELDS = qw( field1 field2 field3 );
    my @PLACEHOLDERS = ('?') x @FIELD;
    ...
         local $" = ',';
         "INSERT (@FIELDS) INTO foo VALUES (@PLACEHOLDERS)";
    };
    
  2. or download this
    {
        my $SQL;
    ...
            $sth->finish;
        }
    }