Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Knowing if an Operation is Successful in MySqlby drewboy (Sexton) |
on Nov 14, 2003 at 12:28 UTC ( [id://307030]=perlquestion: print w/replies, xml ) | Need Help?? |
drewboy has asked for the wisdom of the Perl Monks concerning the following question:
Greetings, Perl Monks. I have a perl script that connects to an SQL database and adds a new row to it: For this script to work smoothly, I need this particular operation to succeed all the time. However, on some occassions, I run the script, get the &success page but nothing's been added to the sql table. I wonder if there's a way in Perl to find out if an insertion of data was successful, such that (hypothetically): Thank you for your time and help:-) Note of THANKS: Thanks Taulmarill, ehdonhon and jeffa for your help! I looked into your suggestions and they really helped me solve my problem.
Back to
Seekers of Perl Wisdom
|
|