more useful options | |
PerlMonks |
Re^3: DBI - Table names & placeholdersby ig (Vicar) |
on Apr 24, 2010 at 06:33 UTC ( [id://836647]=note: print w/replies, xml ) | Need Help?? |
You could produce and prepare the specific queries as you need them. It would be easy and inefficient to use each statement once. Alternatively you could cache them and reuse them. A hash keyed on the table name to hold the prepared statements or a simple sub to prepare them combined with memoize.
In Section
Seekers of Perl Wisdom
|
|