Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks
What is wrong in the following statement? (Trying to query a database using IN and a array with my query values)
my @tagList=('red','black'); my $ID = $dbh->selectall_arrayref("SELECT table FROM tags WHERE ta +g IN (join(', ', ('?') x @tagList))");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI select IN Array
by hippo (Archbishop) on Feb 20, 2019 at 09:18 UTC | |
by Tux (Canon) on Feb 20, 2019 at 15:07 UTC | |
by Anonymous Monk on Feb 20, 2019 at 09:42 UTC | |
by hippo (Archbishop) on Feb 20, 2019 at 10:02 UTC | |
by Anonymous Monk on Feb 20, 2019 at 11:55 UTC | |
|
Re: DBI select IN Array
by 1nickt (Canon) on Feb 20, 2019 at 14:41 UTC | |
|
Re: DBI select IN Array
by clueless newbie (Curate) on Feb 20, 2019 at 15:21 UTC | |
by Tux (Canon) on Feb 20, 2019 at 15:41 UTC | |
|
Re: DBI select IN Array
by dsheroh (Monsignor) on Feb 21, 2019 at 08:28 UTC |