XP is just a number | |
PerlMonks |
Re: 'automating' SQL queries, use Class::DBI?by edoc (Chaplain) |
on Jan 27, 2004 at 08:14 UTC ( [id://324375]=note: print w/replies, xml ) | Need Help?? |
Class::DBI takes care of all the basics for you while at the same time helping to keep all your sql stuff in dedicated modules. Once you have your module set up for a table inserts & updates are easy as pie and custom queries aren't much harder.
and using the module...
I've also recently started using TEMP columns to store values from other tables in the retrieved object via custom join methods so I can still use the oo interface to read the values (can't update in this case) but it's beer o'clock and I don't have an example of that handy.. 8) cheers, J
In Section
Seekers of Perl Wisdom
|
|