Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Databases made easy

by GrandFather (Sage)
on Mar 28, 2011 at 21:10 UTC ( #896028=perltutorial: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        $dbh->rollback ();
        die $@;
    }
    
  2. or download this
    local $dbh->{RaiseError} = 1;
    local $dbh->{PrintError} = 0;
    ...
        }
        die $err;
    }
    
  3. or download this
    use strict;
    use warnings;
    ...
    };
    
    print "Added $entries rows to the People table\n";
    
  4. or download this
    $entries = $sth->execute_array ({}, [keys %people], [values %people]);
    
  5. or download this
    #1
    my $sql = qq{SELECT name, age FROM People WHERE name LIKE ? AND age < 
    +?};
    ...
            printf "%-10s %3d\n", @{$row}{'name', 'age'};
        }
    };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://896028]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2016-07-29 17:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (264 votes). Check out past polls.