Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
SELECT column_name FROM table_name WHERE column_name IN (value1,value2,..)
my $p_str = join ',', ('?') x @array;
SELECT column_name FROM table_name WHERE column_name IN ($p_str)# here it's printing question marks, why? + Is this correct? Shoul the values here be the valuye from @array and + not a bunch of question marks?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Explanation of Code Problem
by TedYoung (Deacon) on Jan 04, 2005 at 16:11 UTC | |
by ikegami (Patriarch) on Jan 04, 2005 at 16:16 UTC | |
by Anonymous Monk on Jan 04, 2005 at 16:24 UTC | |
by TedYoung (Deacon) on Jan 04, 2005 at 16:28 UTC | |
|
Re: Explanation of Code Problem
by Grygonos (Chaplain) on Jan 04, 2005 at 16:19 UTC | |
by Anonymous Monk on Jan 04, 2005 at 16:30 UTC | |
by Grygonos (Chaplain) on Jan 04, 2005 at 17:22 UTC | |
by Anonymous Monk on Jan 04, 2005 at 18:23 UTC | |
by Grygonos (Chaplain) on Jan 04, 2005 at 20:38 UTC | |
|