Neither, really.  You can qualify a table with the database name to operate on 
tables in multiple databases on the same host.

Federated is a way of accessing a table's data from a remote instance of mysql.


-----Original Message-----
From: winterb...@gmail.com [mailto:winterb...@gmail.com] On Behalf Of 
Wellington Fan
Sent: Friday, October 08, 2010 9:52 AM
To: mysql@lists.mysql.com
Subject: Federated Tables versus Views

Hello All,

What should I consider when trying to choose between a Federated table and a
View when I have one table's data that I'd like to be available in other
databases on the same host.

My view definition would be something like:

CREATE
    [some options]
VIEW
    [this_db].[this_view] AS

    SELECT
        [some_db].[some_table].*
    FROM
        [some_db].[some_table].*


Are there performance gains to be had, one against the other? Security
concerns? Replication gotchas?

Thanks!

This message contains confidential information and is intended only for the 
individual named.  If you are not the named addressee, you are notified that 
reviewing, disseminating, disclosing, copying or distributing this e-mail is 
strictly prohibited.  Please notify the sender immediately by e-mail if you 
have received this e-mail by mistake and delete this e-mail from your system. 
E-mail transmission cannot be guaranteed to be secure or error-free as 
information could be intercepted, corrupted, lost, destroyed, arrive late or 
incomplete, or contain viruses. The sender therefore does not accept liability 
for any loss or damage caused by viruses or errors or omissions in the contents 
of this message, which arise as a result of e-mail transmission. [FriendFinder 
Networks, Inc., 220 Humbolt court, Sunnyvale, CA 94089, USA, FriendFinder.com

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/mysql?unsub=arch...@jab.org

Reply via email to