Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: basic dbi question

by wallisds (Beadle)
on Dec 01, 2010 at 21:07 UTC ( [id://874764]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($col1, $col2, $col3) = $dbh->selectrow_array($query);
    
  2. or download this
      my $emps = $dbh->selectall_arrayref(
          "SELECT ename FROM emp ORDER BY ename",
          { Slice => {} }
      );
    
  3. or download this
      foreach my $emp ( @$emps ) {
          print "Employee: $emp->{ename}\n";
      }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-19 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found