Help for this page

Select Code to Download


  1. or download this
    
    my $sql="$a where ";
    ...
    push @where, $c if $c;
    
    $sql .= join " and ", @where;
    
  2. or download this
    my $sql="$a where ";
    my (@where, @args);
    ...
    # use 'prepare_cached' instead.
    my $sth = $dbh->prepare($sql);
    $sth->execute(@args);