Skip to content

Commit 9845bd1

Browse files
committed
6&9. Created countries table script with data filling
nice
1 parent be2b8a8 commit 9845bd1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

sql/toets.sql

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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

Comments
 (0)