different name and mapping columns
Can federated table columns have different name and mapping to remote table?
I mean, for ex: the remote table like this
CREATE TABLE test_table (
id INT(20) NOT NULL AUTO_INCREMENT,
name VARCHAR(32) NOT NULL DEFAULT '',
);
and the federated table lile this
CREATE TABLE federated_table (
id INT(20) NOT NULL AUTO_INCREMENT,
username VARCHAR(32) NOT NULL DEFAULT '' mapping name,
)
ENGINE=FEDERATED
DEFAULT CHARSET=latin1
CONNECTION='mysql://fed_user@remote_host:9306/federated/test_table';
--> The username column in federated table mapping to name column in remote table.
Nghia
Subject
Views
Written By
Posted
different name and mapping columns
5250
June 10, 2008 08:56PM
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.