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 reply to Re: DBD::Oracle 's DBI binding of arrays
by duff
in thread DBD::Oracle 's DBI binding of arrays
by adrive
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |