MySQL Forums
Forum List  »  Merge Storage Engine

Re: Find Underlying Table From Merge Table?
Posted by: KimSeong Loh
Date: March 06, 2006 06:48PM

This probably works without the need of MERGE table but need to write longer query.

SELECT 'Table_1',* FROM Table_1 WHERE name = "Joe"
UNION
SELECT 'Table_2',* FROM Table_2 WHERE name = "Joe"
UNION
SELECT 'Table_3',* FROM Table_3 WHERE name = "Joe"

The other possibility is to add a column in all the tables to keep the table number.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Find Underlying Table From Merge Table?
5091
March 06, 2006 06:48PM


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.