MYSQL 集群 创建表 注意事项

CREATE TABLE City (
ID int(11) NOT NULL auto_increment,
Name char(35) NOT NULL default '',
CountryCode char(3) NOT NULL default '',
District char(20) NOT NULL default '',
Population int(11) NOT NULL default '0',
PRIMARY KEY (ID)
) ENGINE=NDBCLUSTER; 

需要注意的是 表需要加上:ENGINE=NDBCLUSTER;

你可能感兴趣的:(mysql)