Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: composing and debugging MySql placeholders

by LanX (Sage)
on Oct 13, 2015 at 17:45 UTC ( #1144729=note: print w/replies, xml ) Need Help??

in reply to Re: composing and debugging MySql placeholders
in thread composing and debugging MySql placeholders

> If you actually want to recreate the SQL with the placeholders in place that is slightly more difficult but not impossible

Well automatically constructing the following should be straight forward, (though I'm not sure about namespaces in SQL, but for cut and paste this should be irrelevant)

PREPARE stmt1 FROM 'SELECT * FROM t_user_portal WHERE f_client = ?'; SET @client = 'lanx'; EXECUTE stmt1 USING @client;

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2022-12-03 14:56 GMT
Find Nodes?
    Voting Booth?

    No recent polls found