Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: DBI specification change

by runrig (Abbot)
on Jul 17, 2002 at 00:35 UTC ( #182286=note: print w/replies, xml ) Need Help??

in reply to DBI specification change

However, selecting two or more columns and then fetching only one is a plain waste of resources. If you need to fetch only the first column of a query, I recommend that you be specific and ask for that column only.

In some databases (I'm thinking of Informix in particular), fields in the ORDER BY clause must be in the SELECT clause, so maybe you want to select the customer with the highest balance, but don't really need the balance itself, so you fetch the first field of the first row of this:

select customer, balance from customers order by balance desc

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://182286]
[Discipulus]: yes but in a little house with fireplace; 2 friends and lot of beverages..
[Corion]: Discipulus: Aah, so it's not really walking through quick-changing weather
[Discipulus]: no fear: moonday i'll back (unless a big quake ... ;=)
[Corion]: Discipulus: Being out in nature is great, at least as long as you have a dry place to sleep and a warm fire ;)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2017-02-24 09:16 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (353 votes). Check out past polls.