in reply to DBD::SQLite, how to pass array in query via placeholder?
When you execute a single SQL statement (regardless of how, or with what language, you attempt to do it...), a single placeholder necessarily corresponds to a single value that will be placed into a single column of a single row.
That is “how the SQL model-of-reality works.”
In short ... you are attempting to place a list of scalar values into a “slot” (a single column of a single database row) that can only possibly contain one scalar value. And in this regard, it truly makes not one whit of difference which flavor of SQL engine you are attempting to use! Alas, you have “several square pegs,” and “exactly one (square...) hole.”
“Perl or not ...” ... “SQLite or not...” ... you can’t do it.
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBD::SQLite, how to pass array in query via placeholder?
by cavac (Prior) on Apr 10, 2011 at 20:18 UTC | |
|
Re^2: DBD::SQLite, how to pass array in query via placeholder?
by duelafn (Parson) on Apr 10, 2011 at 12:26 UTC | |
by locked_user sundialsvc4 (Abbot) on Apr 11, 2011 at 02:22 UTC | |
by danb (Friar) on Apr 11, 2011 at 03:13 UTC | |
by locked_user sundialsvc4 (Abbot) on Apr 11, 2011 at 17:38 UTC |