Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: DBD::Oracle 's DBI binding of arrays

by duff (Vicar)
on Sep 21, 2007 at 04:16 UTC ( #640261=note: print w/replies, xml ) Need Help??


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)"; # ...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://640261]
help
Chatterbox?
[shmem]: fuel is only one fuel that fuels the fools... it is all about power and control - which NOBODY will have.
[shmem]: ...can't have, since silly
[Discipulus]: yes. the central thing is the power. itself
[Discipulus]: s/some/new/

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2017-04-29 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (534 votes). Check out past polls.