Help for this page

Select Code to Download


  1. or download this
    my $sth = $dbh->prepare(q{
       SELECT x, y, z FROM table1, table2
       WHERE x = ?, y = ?
       ORDER BY z
    });
    
  2. or download this
    $dbh->do('delete from temp where x = ?', undef, $x);
    
  3. or download this
    $sth->execute;
    $sth->bind_column(\$res);
    $sth->fetch;
    
  4. or download this
    $sth->execute;
    unless (@cols = $sth->fetchrow_array) {
       # error
    }