my $sql = qq{INSERT INTO $dbtable VALUES(GFMIS.FIXCUSTOMERPERF_SEQ.nextval,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}; my $sth = $dbh->prepare($sql); $sth->execute($recclient, $recordid, $senddborderid, # ... (and so on for the rest of your variables) );