Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Knowing if an Operation is Successful in MySql

by ehdonhon (Curate)
on Nov 14, 2003 at 12:59 UTC ( [id://307034]=note: print w/replies, xml ) Need Help??


in reply to Knowing if an Operation is Successful in MySql

This will tell you if your command ran successfully.

if ( $dbh->do( $command ) ) { &success; } else { &failure; }

This will tell you if you actually inserted anything:

if ( 0 + $dbh->do( $command ) ) { &success; } else { &failure; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-03-29 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found