|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: perl & SQL best practicesby Jenda (Monsignor) |
| on Apr 27, 2012 at 21:59 UTC ( #967723=note: print w/ replies, xml ) | Need Help?? |
|
Dynamic SQL is dynamic SQL no matter where you construct it. There are times when it is the way to go, but you should try to keep them to a minumum. A (possibly generated) structure of Tends to perform better if used often. Just make sure it doesn't get way too big. And keep in mind that if there is no index on a column (@Whatever is NULL or @Whatever = Whatever) is enough, no need to test that variable in an IF and use separate selects. Jenda
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||