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))");
In reply to DBI select IN Array by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |