Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Printing full SQL statement with placeholders

by rayoslav (Novice)
on Oct 24, 2001 at 23:07 UTC ( [id://121230]=note: print w/replies, xml ) Need Help??


in reply to Printing full SQL statement with placeholders

heres what i do:
my $statement="SELECT data FROM table WHERE conditions = x"; my $sth=$sql->prepare("$statement"); $sth->execute(); #...(etc) print STDOUT "$statement";
and then i clean it out after debugging

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-20 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found