in reply to Re: Using multiple values in a SQL "in" statement
in thread Using multiple values in a SQL "in" statement
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! :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using multiple values in a SQL "in" statement
by locked_user sundialsvc4 (Abbot) on May 02, 2013 at 12:17 UTC | |
|
Re^3: Using multiple values in a SQL "in" statement
by hdb (Monsignor) on May 02, 2013 at 10:13 UTC |