标签:目录 database ica creat country reference tables rom 删除
在没有备份数据的情况下,突然断电导致表损坏,打不开数据库。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‘,ID
),CountryCode
(CountryCode
),idx_city
(Population
,CountryCode
),city_ibfk_1
FOREIGN KEY (CountryCode
) REFERENCES country
(Code
)标签:目录 database ica creat country reference tables rom 删除
原文地址:http://blog.51cto.com/13523963/2344345