20 lines
508 B
SQL
20 lines
508 B
SQL
CREATE TABLE `vn`.continent
|
|
(
|
|
id TINYINT(4) AUTO_INCREMENT,
|
|
name VARCHAR(50) NOT NULL,
|
|
code VARCHAR(2) NOT NULL COLLATE utf8_general_ci,
|
|
CONSTRAINT continent_pk
|
|
PRIMARY KEY (id)
|
|
)
|
|
COMMENT 'World continents';
|
|
|
|
CREATE UNIQUE INDEX continent_name_uindex
|
|
ON `vn`.continent (name);
|
|
|
|
INSERT IGNORE INTO `vn`.continent (`name`, `code`)
|
|
VALUES
|
|
('Asia', 'AS'),
|
|
('América', 'AM'),
|
|
('África', 'AF'),
|
|
('Europa', 'EU'),
|
|
('Oceanía', 'OC'); |