Help for this page

Select Code to Download


  1. or download this
    my $sth = $DBH->prepare('
       SELECT DISTINCT AGE 
    ...
    for my $record (@$records){
      printf "%d\n", $record->[0]; # AGE field
    }
    
  2. or download this
    my $sth = $DBH->prepare('
       SELECT DISTINCT AGE 
       FROM USER');
    $sth->execute();