Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: DBI Substring index query and passing value

by Anonymous Monk
on Dec 11, 2012 at 09:29 UTC ( #1008249=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $sql = sprintf("... where CustomField = ? and Name like %s", $dbh->
    +quote($name . '%'));
    $agent1 = $dbh->prepare($sql) || die $DBI::errstr;
    ...
    $Agent1->execute(291)  || die $DBI::errstr ;
    
    ( $phone_no,$mail )= $Agent1->fetchrow_array or die "no results :(";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-12-25 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls