MySQL Forums
Forum List  »  MyISAM

Re: locking error
Posted by: KimSeong Loh
Date: January 24, 2006 08:39PM

Maybe you need a separate lock for the 2nd use of the table in UNION, try an alias locking

LOCK TABLES am_queue READ, am_queue AS am_queue2 READ, am_group READ, am_site READ;

(
SELECT ...
FROM am_queue
...
)
UNION (

SELECT ...
FROM am_queue AS am_queue2
...
)
...
UNLOCK TABLES;

Options: ReplyQuote


Subject
Views
Written By
Posted
2951
January 17, 2006 07:59PM
1980
January 24, 2006 10:38AM
1802
January 24, 2006 08:13PM
Re: locking error
1789
January 24, 2006 08:39PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.