Help for this page

Select Code to Download


  1. or download this
    $where_clause = 'where id in ('.join(",",("?") x @id).')';
    $sql .= $where_clause;
    my $sth = $dbh->prepare($sql);
    $sth->execute(@id);
    
  2. or download this
    $sql .= 'where id = ?';
    my $sth = $dbh->prepare($sql);
    ...
     $sth->execute($id);
    ...
    }