Skip to content

Instantly share code, notes, and snippets.

@schmidt1024
Created May 13, 2021 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schmidt1024/960c84b41d11f15327595d3cec0e5ad3 to your computer and use it in GitHub Desktop.
Save schmidt1024/960c84b41d11f15327595d3cec0e5ad3 to your computer and use it in GitHub Desktop.
SQL insert of continents incl. short codes
CREATE TABLE `common_continents` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` char(2) NOT NULL DEFAULT '',
`name` varchar(30) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
insert into common_continents (code,name) values ('AF','Africa');
insert into common_continents (code,name) values ('AN','Antarctica');
insert into common_continents (code,name) values ('AS','Asien');
insert into common_continents (code,name) values ('EU','Europe');
insert into common_continents (code,name) values ('NA','North America');
insert into common_continents (code,name) values ('OC','Oceania');
insert into common_continents (code,name) values ('SA','South America');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment