Dynamic SQL is insecure. Dynamic placeholders can be inefficient as the statement will likely not be reused.
Instead, split the string in SQL via XMLDB or the like. This is not dynamic (especially when defined in the DB itself) and the plan can be reused by the optimizer.
--
Edit: Removed comment on limitation. I misread the code. Added more explanation.
In reply to Re^2: Perl - DBI - How to process array rather than single value?
by chacham
in thread Perl - DBI - How to process array rather than single value?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |