Help for this page

Select Code to Download


  1. or download this
    sub selectAll {
      my ($what,$table,@clauses);
    ...
      $sth->execute() or die "SQL: selectAll: '$statement' failed.";
      return $sth->fetchall_arrayref();
    };
    
  2. or download this
    my $sthGetFile = $dbh->prepare("select VISUAL,LINK from FILES where (I
    +D=?)");
    
    ...
    
    # Assuming $id exists in the table
    print getFile($id)->[1];
    
  3. or download this
    my @id = (1,2,3,4,6,7,8);
    my $clause = "";
    ...
    
    my $statement = "select ID,COLOR from TABLE $clause";
    ...