Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update read me & table name.

  • Loading branch information...
commit 4f264b40edc856cdd7174f8d96bd7baa807197fd 1 parent c6370a4
@armetiz authored
Showing with 19 additions and 3 deletions.
  1. +17 −1 README.md
  2. +2 −2 countries_iso3166-1.sql
View
18 README.md
@@ -1,4 +1,20 @@
SQL-Countries-ISO-3166-1
========================
-SQL Query with countries in ISO 3166-1
+SQL Query with countries in ISO 3166-1
+
+Created table is named "countries".
+
+This table will contains each countries in ISO 3166-1 with associated codes & translations.
+Here an example with France :
+
+* code : 250
+* alpha2 : FR
+* alpha3 : FRA
+* langCS : Francie
+* langDE : Frankreich
+* langEN : France
+* langES : Francia
+* langFR : France
+* langIT : Francia
+* langNL : Frankrijk
View
4 countries_iso3166-1.sql
@@ -13,7 +13,7 @@ SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
-- --------------------------------------------------------
-CREATE TABLE IF NOT EXISTS `Countries` (
+CREATE TABLE IF NOT EXISTS `countries` (
`code` int(3) NOT NULL,
`alpha2` varchar(2) NOT NULL,
`alpha3` varchar(3) NOT NULL,
@@ -33,7 +33,7 @@ CREATE TABLE IF NOT EXISTS `Countries` (
-- Contenu de la table `Countries`
--
-INSERT INTO `realcountry` (`code`, `alpha2`, `alpha3`, `langCS`, `langDE`, `langEN`, `langES`, `langFR`, `langIT`, `langNL`) VALUES
+INSERT INTO `countries` (`code`, `alpha2`, `alpha3`, `langCS`, `langDE`, `langEN`, `langES`, `langFR`, `langIT`, `langNL`) VALUES
(4, 'AF', 'AFG', 'Afghanistán', 'Afghanistan', 'Afghanistan', 'Afganistán', 'Afghanistan', 'Afghanistan', 'Afghanistan'),
(8, 'AL', 'ALB', 'Albánie', 'Albanien', 'Albania', 'Albania', 'Albanie', 'Albania', 'Albanië'),
(10, 'AQ', 'ATA', 'Antarctica', 'Antarktis', 'Antarctica', 'Antartida', 'Antarctique', 'Antartide', 'Antarctica'),

0 comments on commit 4f264b4

Please sign in to comment.
Something went wrong with that request. Please try again.