Help for this page

Select Code to Download


  1. or download this
    my @rows = $sth->fetchrow_array; <--- Reads the first row.
                                          You never print it, though.
    ...
                                          structure to do something
                                          equivalent, but there's
                                          no need for that either.
    
  2. or download this
    my $dbh = DBI->connect(
       "DBI:ODBC:mydsn",
    ...
    
    $sth->finish();
    $dbh->disconnect();
    
  3. or download this
    my $dbh = DBI->connect(
       "DBI:ODBC:mydsn",
    ...
    
    $sth->finish();
    $dbh->disconnect();