Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: MySQL and Perl - Shorthand

by schweini (Friar)
on Sep 21, 2002 at 03:25 UTC ( [id://199695]=note: print w/replies, xml ) Need Help??


in reply to MySQL and Perl - Shorthand

AFAIK, there's no really shorter way to do this directly with the DBI.
but using "do" directly on a dbh wont help you. the docs state that it wont return a sth.
try "selectrow_array" and its cousins instead.
("Database Handle Methods" in the dbi-docs)

i basically put the stuff you wrote into a sub in case i simply have to look up a single value.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found