Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: selectrow_array() confusion

by MidLifeXis (Monsignor)
on Nov 25, 2008 at 19:58 UTC ( [id://725928]=note: print w/replies, xml ) Need Help??


in reply to selectrow_array() confusion

Works just fine under DBD::Oracle. Are any errors thrown by the DBD driver?

--MidLifeXis

Replies are listed 'Best First'.
Re^2: selectrow_array() confusion
by jeffa (Bishop) on Nov 25, 2008 at 20:02 UTC

    I was able to get this to work for me as well using MySQL.

    use DBI; use Data::Dumper; my $dbh = DBI->connect( 'DBI:mysql:database:host', 'user', 'pass', {RaiseError=>1} ); print Dumper [ $dbh->selectrow_array( 'select max(id),min(id) from movie' ) ];

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-24 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found