MySQL Forums
Forum List  »  Federated Storage Engine

Creating FEDERATED tables with Stored Procedure
Posted by: Roland Bouman
Date: November 25, 2006 01:43PM

Hi all,

Creating a federated table is tedious, because in the local database, you need to define a table with exactly the same structure as the remote table. That includes the index definitions, because these are used by the local optimizer to create a query plan (although the statistics for the index will not be locally available)

This procedure creates automatically creates the federated table. It does so by reading from the information_schema on the remote host.

see:
http://rpbouman.blogspot.com/2006/11/mysql-stored-procedure-to-create.html
and
http://forge.mysql.com/snippets/view.php?id=54

Hope it helps,

Roland

Roland Bouman
http://rpbouman.blogspot.com/

Options: ReplyQuote


Subject
Views
Written By
Posted
Creating FEDERATED tables with Stored Procedure
6416
November 25, 2006 01:43PM


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.