I either use that logic, or when I'm lazy about typing:
my $sth = $dbh1->prepare('SELECT name FROM table WHERE id IN ( ?'.(',?' x $#id).' )') or ...... but I wouldn't recommend this if other people might be expected to actually maintain it.
In reply to Re^2: Using multiple values in a SQL "in" statement
by jhourcle
in thread Using multiple values in a SQL "in" statement
by perlvroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |