Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
No such thing as a small change
 
PerlMonks  

Re^5: Quickest way of fetching a Single row and column in MySQL using DBI

by jZed (Prior)
on Aug 08, 2006 at 21:59 UTC ( [id://566304]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re^4: Quickest way of fetching a Single row and column in MySQL using DBI
in thread Quickest way of fetching a Single row and column in MySQL using DBI

Quoting the DBI docs is insufficient because the DBDs can override this. Forcing array context is not required because only a single column is being fetched regardless of which DBD is in use. Whenever more than one column is being fetched you should force list context if you care at all about portability. In scalar context, some DBDs return the first of the multiple columns and some return the last. Personally I try to always force the list context since it doesn't ever hurt and it sometimes helps.
  • Comment on Re^5: Quickest way of fetching a Single row and column in MySQL using DBI

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://566304]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.