in reply to DBD::Oracle 's DBI binding of arrays
You could use quote():
my @userArray = qw(batman robin joker); my $set = join(",", map { $dbh->quote($_) } @userArray); my $sql = "select * from tablename where username IN ($set)"; # ...
|
---|
In Section
Seekers of Perl Wisdom