Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: SQL queries using dynamic array

by jhourcle (Prior)
on Aug 04, 2005 at 01:40 UTC ( #480674=note: print w/ replies, xml ) Need Help??


in reply to Re: SQL queries using dynamic array
in thread SQL queries using dynamic array

For those who like bind variables:

my $placeholders = join ( ',', ('?') x @values ); my $statement = <<"EOF"; SELECT c_email, c_first, c_last FROM tblClient, tblGroup, tblRegion WHERE tblGroup.g_name = ? AND tblRegion.r_name IN ( $placeholders ) EOF my $sth = $dbh->prepare($statement); $sth->execute('motel', @values);


Comment on Re^2: SQL queries using dynamic array
Download Code
Reaped: Re^3: SQL queries using dynamic array
by NodeReaper (Curate) on Nov 16, 2008 at 07:21 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://480674]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2014-04-21 16:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (496 votes), past polls