Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: DBI - I can't use bind variables with "like"?

by lestrrat (Deacon)
on Jun 30, 2006 at 00:18 UTC ( [id://558482]=note: print w/replies, xml ) Need Help??


in reply to DBI - I can't use bind variables with "like"?

Untested, but have you tried

my $sth = $dbh->prepare(<<EOSQL); SELECT * FROM my_table WHERE description LIKE ? EOSQL $sth->execute('%' . $description . '%');

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found