SQL query for list of countries is given below
Create Country Table Query
Query to Insert Countries
Create Country Table Query
1.
CREATE
TABLE
`country` (
2.
`COUNTRY_ID`
int
(10) unsigned
NOT
NULL
AUTO_INCREMENT,
3.
`COUNTRY_CODE`
varchar
(45)
NOT
NULL
,
4.
`COUNTRY_NAME`
varchar
(75)
NOT
NULL
5.
PRIMARY
KEY
(`COUNTRY_ID`)
6.
)
Query to Insert Countries
001.
INSERT
INTO
`country` (`COUNTRY_ID`,`COUNTRY_CODE`,`COUNTRY_NAME`)
VALUES
002.
(1,
'US'
,
'United States'
),
003.
(2,
'CA'
,
'Canada'
),
004.
(3,
'AF'
,
'Afghanistan'
),
005.
(4,
'AL'
,
'Albania'
),
006.
(5,
'DZ'
,
'Algeria'
),
007.
(6,
'DS'
,
'American Samoa'
),
008.
(7,
'AD'
,
'Andorra'
),
009.
(8,
'AO'
,
'Angola'
),
010.
(9,
'AI'
,
'Anguilla'
),
011.
(10,
'AQ'
,
'Antarctica'
),
012.
(11,
'AG'
,
'Antigua and/or Barbuda'
),
013.
(12,
'AR'
,
'Argentina'
),
014.
(13,
'AM'
,
'Armenia'
),
015.
(14,
'AW'
,
'Aruba'
),
016.
(15,
'AU'
,
'Australia'
),
017.
(16,
'AT'
,
'Austria'
),
018.
(17,
'AZ'
,
'Azerbaijan'
),
019.
(18,
'BS'
,
'Bahamas'
),
020.
(19,
'BH'
,
'Bahrain'
),
021.
(20,
'BD'
,
'Bangladesh'
),
022.
(21,
'BB'
,
'Barbados'
),
023.
(22,
'BY'
,
'Belarus'
),
024.
(23,
'BE'
,
'Belgium'
),
025.
(24,
'BZ'
,
'Belize'
),
026.
(25,
'BJ'
,
'Benin'
),
027.
(26,
'BM'
,
'Bermuda'
),
028.
(27,
'BT'
,
'Bhutan'
),
029.
(28,
'BO'
,
'Bolivia'
),
030.
(29,
'BA'
,
'Bosnia and Herzegovina'
),
031.
(30,
'BW'
,
'Botswana'
),
032.
(31,
'BV'
,
'Bouvet Island'
),
033.
(32,
'BR'
,
'Brazil'
),
034.
(33,
'IO'
,
'British lndian Ocean Territory'
),
035.
(34,
'BN'
,
'Brunei Darussalam'
),
036.
(35,
'BG'
,
'Bulgaria'
),
037.
(36,
'BF'
,
'Burkina Faso'
),
038.
(37,
'BI'
,
'Burundi'
),
039.
(38,
'KH'
,
'Cambodia'
),
040.
(39,
'CM'
,
'Cameroon'
),
041.
(40,
'CV'
,
'Cape Verde'
),
042.
(41,
'KY'
,
'Cayman Islands'
),
043.
(42,
'CF'
,
'Central African Republic'
),
044.
(43,
'TD'
,
'Chad'
),
045.
(44,
'CL'
,
'Chile'
),
046.
(45,
'CN'
,
'China'
),
047.
(46,
'CX'
,
'Christmas Island'
),
048.
(47,
'CC'
,
'Cocos (Keeling) Islands'
),
049.
(48,
'CO'
,
'Colombia'
),
050.
(49,
'KM'
,
'Comoros'
),
051.
(50,
'CG'
,
'Congo'
),
052.
(51,
'CK'
,
'Cook Islands'
),
053.
(52,
'CR'
,
'Costa Rica'
),
054.
(53,
'HR'
,
'Croatia (Hrvatska)'
),
055.
(54,
'CU'
,
'Cuba'
),
056.
(55,
'CY'
,
'Cyprus'
),
057.
(56,
'CZ'
,
'Czech Republic'
),
058.
(57,
'DK'
,
'Denmark'
),
059.
(58,
'DJ'
,
'Djibouti'
),
060.
(59,
'DM'
,
'Dominica'
),
061.
(60,
'DO'
,
'Dominican Republic'
),
062.
(61,
'TP'
,
'East Timor'
),
063.
(62,
'EC'
,
'Ecudaor'
),
064.
(63,
'EG'
,
'Egypt'
),
065.
(64,
'SV'
,
'El Salvador'
),
066.
(65,
'GQ'
,
'Equatorial Guinea'
),
067.
(66,
'ER'
,
'Eritrea'
),
068.
(67,
'EE'
,
'Estonia'
),
069.
(68,
'ET'
,
'Ethiopia'
),
070.
(69,
'FK'
,
'Falkland Islands (Malvinas)'
),
071.
(70,
'FO'
,
'Faroe Islands'
),
072.
(71,
'FJ'
,
'Fiji'
),
073.
(72,
'FI'
,
'Finland'
),
074.
(73,
'FR'
,
'France'
),
075.
(74,
'GF'
,
'French Guiana'
),
076.
(75,
'PF'
,
'French Polynesia'
),
077.
(76,
'TF'
,
'French Southern Territories'
),
078.
(77,
'GA'
,
'Gabon'
),
079.
(78,
'GM'
,
'Gambia'
),
080.
(79,
'GE'
,
'Georgia'
),
081.
(80,
'DE'
,
'Germany'
),
082.
(81,
'GH'
,
'Ghana'
),
083.
(82,
'GI'
,
'Gibraltar'
),
084.
(83,
'GR'
,
'Greece'
),
085.
(84,
'GL'
,
'Greenland'
),
086.
(85,
'GD'
,
'Grenada'
),
087.
(86,
'GP'
,
'Guadeloupe'
),
088.
(87,
'GU'
,
'Guam'
),
089.
(88,
'GT'
,
'Guatemala'
),
090.
(89,
'GN'
,
'Guinea'
),
091.
(90,
'GW'
,
'Guinea-Bissau'
),
092.
(91,
'GY'
,
'Guyana'
),
093.
(92,
'HT'
,
'Haiti'
),
094.
(93,
'HM'
,
'Heard and Mc Donald Islands'
),
095.
(94,
'HN'
,
'Honduras'
),
096.
(95,
'HK'
,
'Hong Kong'
),
097.
(96,
'HU'
,
'Hungary'
),
098.
(97,
'IS'
,
'Iceland'
),
099.
(98,
'IN'
,
'India'
),
100.
(99,
'ID'
,
'Indonesia'
),
101.
(100,
'IR'
,
'Iran (Islamic Republic of)'
),
102.
(101,
'IQ'
,
'Iraq'
),
103.
(102,
'IE'
,
'Ireland'
),
104.
(103,
'IL'
,
'Israel'
),
105.
(104,
'IT'
,
'Italy'
),
106.
(105,
'CI'
,
'Ivory Coast'
),
107.
(106,
'JM'
,
'Jamaica'
),
108.
(107,
'JP'
,
'Japan'
),
109.
(108,
'JO'
,
'Jordan'
),
110.
(109,
'KZ'
,
'Kazakhstan'
),
111.
(110,
'KE'
,
'Kenya'
),
112.
(111,
'KI'
,
'Kiribati'
),
113.
(112,
'KP'
,
'Korea, Democratic People\'s Republic of'
),
114.
(113,
'KR'
,
'Korea, Republic of'
),
115.
(114,
'KW'
,
'Kuwait'
),
116.
(115,
'KG'
,
'Kyrgyzstan'
),
117.
(116,
'LA'
,
'Lao People\'s Democratic Republic'
),
118.
(117,
'LV'
,
'Latvia'
),
119.
(118,
'LB'
,
'Lebanon'
),
120.
(119,
'LS'
,
'Lesotho'
),
121.
(120,
'LR'
,
'Liberia'
),
122.
(121,
'LY'
,
'Libyan Arab Jamahiriya'
),
123.
(122,
'LI'
,
'Liechtenstein'
),
124.
(123,
'LT'
,
'Lithuania'
),
125.
(124,
'LU'
,
'Luxembourg'
),
126.
(125,
'MO'
,
'Macau'
),
127.
(126,
'MK'
,
'Macedonia'
),
128.
(127,
'MG'
,
'Madagascar'
),
129.
(128,
'MW'
,
'Malawi'
),
130.
(129,
'MY'
,
'Malaysia'
),
131.
(130,
'MV'
,
'Maldives'
),
132.
(131,
'ML'
,
'Mali'
),
133.
(132,
'MT'
,
'Malta'
),
134.
(133,
'MH'
,
'Marshall Islands'
),
135.
(134,
'MQ'
,
'Martinique'
),
136.
(135,
'MR'
,
'Mauritania'
),
137.
(136,
'MU'
,
'Mauritius'
),
138.
(137,
'TY'
,
'Mayotte'
),
139.
(138,
'MX'
,
'Mexico'
),
140.
(139,
'FM'
,
'Micronesia, Federated States of'
),
141.
(140,
'MD'
,
'Moldova, Republic of'
),
142.
(141,
'MC'
,
'Monaco'
),
143.
(142,
'MN'
,
'Mongolia'
),
144.
(143,
'MS'
,
'Montserrat'
),
145.
(144,
'MA'
,
'Morocco'
),
146.
(145,
'MZ'
,
'Mozambique'
),
147.
(146,
'MM'
,
'Myanmar'
),
148.
(147,
'NA'
,
'Namibia'
),
149.
(148,
'NR'
,
'Nauru'
),
150.
(149,
'NP'
,
'Nepal'
),
151.
(150,
'NL'
,
'Netherlands'
),
152.
(151,
'AN'
,
'Netherlands Antilles'
),
153.
(152,
'NC'
,
'New Caledonia'
),
154.
(153,
'NZ'
,
'New Zealand'
),
155.
(154,
'NI'
,
'Nicaragua'
),
156.
(155,
'NE'
,
'Niger'
),
157.
(156,
'NG'
,
'Nigeria'
),
158.
(157,
'NU'
,
'Niue'
),
159.
(158,
'NF'
,
'Norfork Island'
),
160.
(159,
'MP'
,
'Northern Mariana Islands'
),
161.
(160,
'NO'
,
'Norway'
),
162.
(161,
'OM'
,
'Oman'
),
163.
(162,
'PK'
,
'Pakistan'
),
164.
(163,
'PW'
,
'Palau'
),
165.
(164,
'PA'
,
'Panama'
),
166.
(165,
'PG'
,
'Papua New Guinea'
),
167.
(166,
'PY'
,
'Paraguay'
),
168.
(167,
'PE'
,
'Peru'
),
169.
(168,
'PH'
,
'Philippines'
),
170.
(169,
'PN'
,
'Pitcairn'
),
171.
(170,
'PL'
,
'Poland'
),
172.
(171,
'PT'
,
'Portugal'
),
173.
(172,
'PR'
,
'Puerto Rico'
),
174.
(173,
'QA'
,
'Qatar'
),
175.
(174,
'RE'
,
'Reunion'
),
176.
(175,
'RO'
,
'Romania'
),
177.
(176,
'RU'
,
'Russian Federation'
),
178.
(177,
'RW'
,
'Rwanda'
),
179.
(178,
'KN'
,
'Saint Kitts and Nevis'
),
180.
(179,
'LC'
,
'Saint Lucia'
),
181.
(180,
'VC'
,
'Saint Vincent and the Grenadines'
),
182.
(181,
'WS'
,
'Samoa'
),
183.
(182,
'SM'
,
'San Marino'
),
184.
(183,
'ST'
,
'Sao Tome and Principe'
),
185.
(184,
'SA'
,
'Saudi Arabia'
),
186.
(185,
'SN'
,
'Senegal'
),
187.
(186,
'SC'
,
'Seychelles'
),
188.
(187,
'SL'
,
'Sierra Leone'
),
189.
(188,
'SG'
,
'Singapore'
),
190.
(189,
'SK'
,
'Slovakia'
),
191.
(190,
'SI'
,
'Slovenia'
),
192.
(191,
'SB'
,
'Solomon Islands'
),
193.
(192,
'SO'
,
'Somalia'
),
194.
(193,
'ZA'
,
'South Africa'
),
195.
(194,
'GS'
,
'South Georgia South Sandwich Islands'
),
196.
(195,
'ES'
,
'Spain'
),
197.
(196,
'LK'
,
'Sri Lanka'
),
198.
(197,
'SH'
,
'St. Helena'
),
199.
(198,
'PM'
,
'St. Pierre and Miquelon'
),
200.
(199,
'SD'
,
'Sudan'
),
201.
(200,
'SR'
,
'Suriname'
),
202.
(201,
'SJ'
,
'Svalbarn and Jan Mayen Islands'
),
203.
(202,
'SZ'
,
'Swaziland'
),
204.
(203,
'SE'
,
'Sweden'
),
205.
(204,
'CH'
,
'Switzerland'
),
206.
(205,
'SY'
,
'Syrian Arab Republic'
),
207.
(206,
'TW'
,
'Taiwan'
),
208.
(207,
'TJ'
,
'Tajikistan'
),
209.
(208,
'TZ'
,
'Tanzania, United Republic of'
),
210.
(209,
'TH'
,
'Thailand'
),
211.
(210,
'TG'
,
'Togo'
),
212.
(211,
'TK'
,
'Tokelau'
),
213.
(212,
'TO'
,
'Tonga'
),
214.
(213,
'TT'
,
'Trinidad and Tobago'
),
215.
(214,
'TN'
,
'Tunisia'
),
216.
(215,
'TR'
,
'Turkey'
),
217.
(216,
'TM'
,
'Turkmenistan'
),
218.
(217,
'TC'
,
'Turks and Caicos Islands'
),
219.
(218,
'TV'
,
'Tuvalu'
),
220.
(219,
'UG'
,
'Uganda'
),
221.
(220,
'UA'
,
'Ukraine'
),
222.
(221,
'AE'
,
'United Arab Emirates'
),
223.
(222,
'GB'
,
'United Kingdom'
),
224.
(223,
'UM'
,
'United States minor outlying islands'
),
225.
(224,
'UY'
,
'Uruguay'
),
226.
(225,
'UZ'
,
'Uzbekistan'
),
227.
(226,
'VU'
,
'Vanuatu'
),
228.
(227,
'VA'
,
'Vatican City State'
),
229.
(228,
'VE'
,
'Venezuela'
),
230.
(229,
'VN'
,
'Vietnam'
),
231.
(230,
'VG'
,
'Virigan Islands (British)'
),
232.
(231,
'VI'
,
'Virgin Islands (U.S.)'
),
233.
(232,
'WF'
,
'Wallis and Futuna Islands'
),
234.
(233,
'EH'
,
'Western Sahara'
),
235.
(234,
'YE'
,
'Yemen'
),
236.
(235,
'YU'
,
'Yugoslavia'
),
237.
(236,
'ZM'
,
'Zambia'
),
238.
(237,
'ZW'
,
'Zimbabwe'
);
0 comments:
Post a Comment