This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `cities` ( | |
`id` int NOT NULL , | |
`city_name` varchar(100) NOT NULL default '', | |
`country_id` varchar(3) NOT NULL, | |
PRIMARY KEY (`id`), | |
FOREIGN KEY (`country_id`) REFERENCES countries(`country_code`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; | |
-- | |
-- Dumping data for table `countries` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `countries` ( | |
`country_code` varchar(2) NOT NULL default '', | |
`country_enName` varchar(100) NOT NULL default '', | |
`country_arName` varchar(100) NOT NULL default '', | |
`country_enNationality` varchar(100) NOT NULL default '', | |
`country_arNationality` varchar(100) NOT NULL default '', | |
PRIMARY KEY (`country_code`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; | |
-- | |
-- Dumping data for table `countries` |