in reply to Re: Re: Re: MySQL Table Creation using DBI
in thread MySQL Table Creation using DBI

Apologies for the misrepresentation. Misread the message hierarchy. Now fixed.

You can certainly get in a horrible fix if you don't understand that tools like Class::DBI have limitations (the lack of support for multi-column primary keys being a case in point here).

I think I could argue with the statement that SQL is the most straightforward way of doing the task - but I understand the sentiment ;-)

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: MySQL Table Creation using DBI
by ignatz (Vicar) on Sep 06, 2002 at 01:10 UTC
    <soapbox>
    If right out of the gate you are needing to create dynamic constantly changing scripted tables you need to step back and rethink your problem. You are trying to hard. It is easy to fall into the trap of treating tables as just another hash to manipulate. Your data is not mearly a tool that you use in your application. It is your foundation, and you need to keep your foundation as solid and simple as possible. Even The Sistine Chapel is built on a big boring block of rock.

    As someone who has spent a lot of time digging through other people's spaghetti code, there is nothing more horrible then abstract, dynamically generated SQL. Clear, simple, straitforward SQL is like a beacon in even the darkest of nights. Think long and hard before you try something more.

    </soapbox>

    /me goes back to his cave to lick his wounds from his last contract gig.

    ()-()
     \"/
      `