in reply to DBI select IN Array
yieldsmy @tagList=('red','black'); my $sql="SELECT table FROM tags WHERE tag IN (@{[join(', ', ('?') x @t +agList)]})"; print $sql,"\n";
SELECT table FROM tags WHERE tag IN (?, ?)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI select IN Array
by Tux (Canon) on Feb 20, 2019 at 15:41 UTC |