Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 pondering the Monastery: (8)
As of 2014-09-20 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (158 votes), past polls