Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI

by princepawn (Parson)
on Nov 28, 2000 at 23:53 UTC ( [id://43752]=note: print w/replies, xml ) Need Help??


in reply to Re: Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI
in thread Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI

First, switching field positions in a table is usually not a good idea

I agree that it may not be a good idea but in the prototyping stages of a project anything including switching field positions can happen.

And the idea is to hope that the code itself can remain relatively invariant in the face of the design changes that can occur almost daily when a new project is underway.

Replies are listed 'Best First'.
Re: Re: Re: Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI
by swiftone (Curate) on Nov 28, 2000 at 23:54 UTC
    But if you select by fields rather than by * as he said, changing the order in the table shouldn't affect your code at all.

      SELECT * FROM blah ORDER BY keyword

      Lets face it, most database queries pay little attention to the physical location of the data within the database...

      Then again, if we were really wirried about the physical location and order of the information we were accessing would you really argue that a generic database was the best way of storing?

        No no no, the '*' is the problem here, we aren't talking row order, we are talking about switching columns around. It's so evil your mind refused to believe it was possible =)

        --
        $you = new YOU;
        honk() if $you->love(perl)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-28 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found