{"id":116,"date":"2014-11-24T06:42:55","date_gmt":"2014-11-24T06:42:55","guid":{"rendered":"https:\/\/www.kolkataonweb.com\/code-bank\/?p=116"},"modified":"2014-11-25T08:20:07","modified_gmt":"2014-11-25T08:20:07","slug":"database-of-all-countries","status":"publish","type":"post","link":"https:\/\/www.kolkataonweb.com\/code-bank\/miscellaneous\/database-of-all-countries\/","title":{"rendered":"Database of All Countries"},"content":{"rendered":"<p>Here is a MySQL dump of all the countries in one table. It is a pretty handy database with 2 char country codes, 3 char country codes and latitude and longitude (somewhat in the middle area) of each countries. Below are the columns of the table.<br \/>\n<a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2014\/11\/country-table-structure.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2014\/11\/country-table-structure-1024x490.png\" alt=\"Country Table Structure\" width=\"604\" height=\"289\" class=\"alignnone size-large wp-image-119\" srcset=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2014\/11\/country-table-structure-1024x490.png 1024w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2014\/11\/country-table-structure-300x143.png 300w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2014\/11\/country-table-structure.png 1136w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/a><\/p>\n<p>And below is a sample of the data stored in each row.<br \/>\n<a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2014\/11\/country-row-sample.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2014\/11\/country-row-sample-1024x113.png\" alt=\"country-row-sample\" width=\"604\" height=\"66\" class=\"alignnone size-large wp-image-120\" srcset=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2014\/11\/country-row-sample-1024x113.png 1024w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2014\/11\/country-row-sample-300x33.png 300w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2014\/11\/country-row-sample.png 1085w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/a><\/p>\n<p>Here is the link for downloading the dump file <a target=\"_blank\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2014\/11\/country.sql\">country.sql<\/a><br \/>\nLet me know if other formats like CSV or XML will be more helpful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a MySQL dump of all the countries in one table. It is a pretty handy database with 2 char country codes, 3 char country codes and latitude and longitude (somewhat in the middle area) of each countries. Below are the columns of the table. And below is a sample of the data stored&hellip; <a class=\"more-link\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/miscellaneous\/database-of-all-countries\/\">Continue reading <span class=\"screen-reader-text\">Database of All Countries<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,3],"tags":[6],"class_list":["post-116","post","type-post","status-publish","format-standard","hentry","category-miscellaneous","category-php","tag-country-database","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/comments?post=116"}],"version-history":[{"count":9,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/116\/revisions"}],"predecessor-version":[{"id":127,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/116\/revisions\/127"}],"wp:attachment":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/media?parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/categories?post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/tags?post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}