sdyates has asked for the wisdom of the Perl Monks concerning the following question:
$dbh->$do("LOCK TABLES support read");
$SQLCommand="UPDATE support.....");
my $sth = $dbh->prepare("SQLCommand");
$sth->execute;
$dbh->do("UNLOCK TABLES");
Well, this has the effect of locking me. I want to lock everyone else but the application undating the table. Should I be looking at my perl scripting here or SQL for the answer?
Please advise,
sdyates
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using perl to lock tables without locking myself
by gellyfish (Monsignor) on Mar 12, 2002 at 21:03 UTC | |
by sdyates (Scribe) on Mar 13, 2002 at 02:51 UTC | |
|
Re: using perl to lock tables without locking myself
by webadept (Pilgrim) on Mar 12, 2002 at 22:05 UTC | |
|
Re: using perl to lock tables without locking myself
by rdfield (Priest) on Mar 13, 2002 at 10:58 UTC | |
|
BB Re: using perl to lock tables without locking myself
by knobunc (Pilgrim) on Mar 13, 2002 at 17:48 UTC |