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

Re: Re: Code factory

by Anonymous Monk
on Jul 08, 2003 at 18:28 UTC ( #272377=note: print w/replies, xml ) Need Help??

in reply to Re: Code factory
in thread Code factory

A note on select *. In some db's, you can do subselects with select * that increase maintainability. You can get things like:
select, from ( select * from beverage where type = ? ) drink
now mind you, it may not be as efficient as explicitly doign every single column, but if the sub query produces negligible data-size difference (in bytes) then you can definitely get away w/ it and have virtually no performance difference.

Granted, this query can be rewritten so that it doesn't use a subquery, but subqueries are a feature that is needed sometimes. This is just merely an example showing only the features of a subselect and select * :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://272377]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2018-07-22 05:13 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (451 votes). Check out past polls.