Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

DBI.pm: composing and debugging MySql placeholders

by LanX (Saint)
on Oct 13, 2015 at 15:48 UTC ( [id://1144719]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $statement = <<'__SQL__';
    SELECT *
    ...
    
    my $rv = $sth->execute($client)
         or die $sth->errstr;
    
  2. or download this
    SELECT *
       FROM t_user_portal
       WHERE f_client = 'lanx'
    
  3. or download this
    PREPARE stmt1 FROM 'SELECT * FROM t_user_portal WHERE f_client = ?';
    SET @client = 'lanx';
    EXECUTE stmt1 USING @client;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-29 05:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found