リモートサーバーに配置された VIEW で FEDERATED を作成するにはどうすればよいですか? 私はMySQLを使用しています。
9280 次
1 に答える
17
はい、VIEWにFEDERATEDテーブルを作成できます。
簡単な例を次に示します。
create table t_table (
id int not null auto_increment primary key
) engine = innodb;
create or replace view v_view as select * from t_table;
create table f_fed_table (
id int not null
) ENGINE=FEDERATED CONNECTION='mysql://user:password@127.0.0.1:3306/test/v_view';
于 2011-03-23T13:54:28.307 に答える