Help for this page

Select Code to Download


  1. or download this
    my @results = &row_sql(qq~ select * from table where ...; ~);
    
    ...
    foreach my $row (@$rows){
      print "$row->{id}, $row->{somecolumn}\n";
    }
    
  2. or download this
        until (
        $dbh=DBI->connect_cached($connectionInfo,$user,$passwd, {PrintErro
    +r=>0} )
    ...
            }
        }
        ) { if ($sqlw){print "Retrying SQL Insert ($DBI::errstr)...";} sle
    +ep (1); $retry_count++;}
    
  3. or download this
    
    use DBI;
    ...
        
        return 1;
    }