in reply to LOCK TABLES using Perl in MySQL

I grappled with a similar problem, helped by monks. The first thread of interesting advice is here. At the end of that my conclusion was to use the following sledgehammer:
$dbh->do("LOCK TABLES tbl WRITE"); $dbh->do("$various_sql_stuff_without_getting_tangled"); $dbh->do("UNLOCK TABLES");
to crack a nut. Which I found works.

Then I mentioned this in another thread and htoug said some very interesting things, which to my shame I have not yet followed up; but when I revisit the MySQL aspects of my current project I shall try to slim them down, using his advice.

When I do that, I shall of course return to this thread too, where I confidently expect to find the optimal synthesis of former wisdom.

§ George Sherston

Replies are listed 'Best First'.
Re: Re: LOCK TABLES using Perl in MySQL
by sdyates (Scribe) on Jan 03, 2002 at 02:33 UTC
    Thanks for the info. I am only using one sql command other than the LOCK and UNLOCK. Do you have the exact article in question, I was amazed at how much htoug has actually written and found myself slipping off into other areas :) Thanks for the info though.