Just another Perl shrine | |
PerlMonks |
Re^2: Using multiple values in a SQL "in" statementby space_monk (Chaplain) |
on May 02, 2013 at 09:54 UTC ( [id://1031719]=note: print w/replies, xml ) | Need Help?? |
Normally your answers are very good, but this is not one of those answers. :-) Putting values directly into a SQL statement is a classic example of what not to do, because it is vulnerable to SQL injection attacks if the ID array values are externally sourced. The reason it is recommended to bind values in is to protect themselves from this sort of thing! :-)
If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)
In Section
Seekers of Perl Wisdom
|
|