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

selectrow_array() confusion

by Cody Pendant (Prior)
on Nov 25, 2008 at 19:39 UTC ( [id://725924]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $d = DBI->connect( 'stuff', 'user', 'pass' )
      || die("couldn't connect to database");
    my ($min,$max) = $d->selectrow_array(
    "SELECT min(id),max(id) from images where foo like 'bar%'"
    )
    
  2. or download this
    mysql> SELECT min(id),max(id) from images where foo like 'bar%';
    +---------+---------+
    ...
    +---------+---------+
    1 row in set (0.59 sec)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://725924]
Approved by Corion
Front-paged by MidLifeXis
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-03-28 08:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found