$dbh->do( "DELETE FROM table WHERE oid = ?", undef, $oid ); or $sth = $dbh->prepare( "DELETe FROM table WHERE oid = ?" ); $sth->execute( $oid );