|
| 1 | +USE `mvcframework`; |
| 2 | + |
| 3 | +DROP TABLE IF EXISTS `countries`; |
| 4 | + |
| 5 | +CREATE TABLE IF NOT EXISTS `countries`( |
| 6 | + `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, |
| 7 | + `name` VARCHAR(128) NOT NULL, |
| 8 | + `capitalCity` VARCHAR(128) NOT NULL, |
| 9 | + `continent` ENUM('Afrika', 'Antarctica', 'Azië', 'Australië/Oceanië', 'Europa', 'Noord-Amerika', 'Zuid-Amerika') NOT NULL, |
| 10 | + `population` INT UNSIGNED NOT NULL, |
| 11 | + |
| 12 | + PRIMARY KEY(`id`) |
| 13 | +) ENGINE=InnoDB DEFAULT CHARACTER SET=latin1; |
| 14 | + |
| 15 | +INSERT INTO `countries` |
| 16 | + (`name`, `capitalCity`, `continent`, `population`) |
| 17 | +VALUES |
| 18 | + ('Nederland', 'Amsterdam', 'Europa', 17134872), |
| 19 | + ('Duitsland', 'Berlijn', 'Europa', 83222442), |
| 20 | + ('Australië', 'Canberra', 'Australië/Oceanië', 25499884), |
| 21 | + ('Rwanda', 'Kigali', 'Afrika', 12952218), |
| 22 | + ('Canada', 'Ottawa', 'Noord-Amerika', 37742154), |
| 23 | + ('-','-', 'Antarctica', 10000), |
| 24 | + ('China', 'Beijing', 'Azië', 1439323776); |
0 commit comments