Skip to content

Commit

Permalink
Update read me & table name.
Browse files Browse the repository at this point in the history
  • Loading branch information
armetiz committed Jun 8, 2012
1 parent c6370a4 commit 4f264b4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions countries_iso3166-1.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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'),
Expand Down

0 comments on commit 4f264b4

Please sign in to comment.