Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

DBI.pm: composing and debugging MySql placeholders

by LanX (Sage)
on Oct 13, 2015 at 15:48 UTC ( #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? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2023-01-31 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?