Help for this page

Select Code to Download


  1. or download this
    CREATE TABLE respondent (
        id unsigned int not null auto_increment primary key
    ...
       ,response   unsigned int
       ,PRIMARY KEY (respondent, response)
    );
    
  2. or download this
    SELECT A.respondent AS respondent
      FROM responses A JOIN responses B on (A.respondent = B.respondent)
     WHERE A.response = ?
       AND B.response = ?
    
  3. or download this
    my $sth = $dbh->prepare_cached( $sql );
    $sth->execute( $response_x, $response_y );
    ...
    }
    
    $sth->finish;