Have you considered a database-side solution?
Depending on what exactly you're doing, you may be able to use a combination of views and/or stored procedures to deal with repetitition in your queries.
In reply to Re: What's the best module to stop mixing SQL with Perl?
by jhourcle
in thread What's the best module to stop mixing SQL with Perl?
by Withigo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |