There's more than one way to do things | |
PerlMonks |
Re^2: Using multiple values in a SQL "in" statementby jhourcle (Prior) |
on May 02, 2013 at 02:28 UTC ( [id://1031682]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|