{"id":1749,"date":"2012-05-03T16:21:08","date_gmt":"2012-05-03T16:21:08","guid":{"rendered":"http:\/\/kedar.nitty-witty.com\/?p=1749"},"modified":"2014-06-24T18:55:50","modified_gmt":"2014-06-24T18:55:50","slug":"load-columnar-text-file-into-mysql-table","status":"publish","type":"post","link":"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table","title":{"rendered":"Load columnar text file into MySQL table"},"content":{"rendered":"<p>Ever come accoss a situation where you have to load a flat text file into MySQL with data provided in single column!<br \/>\nSay, your data to be loaded in table looks something like this:<\/p>\n<p><code>Company1<br \/>\nStreet Name<br \/>\nCity, MyState 8582<br \/>\n(999)999-999<br \/>\nanother_Company<br \/>\nAnother Street 2<br \/>\nNew City, NWSTATE 8582<br \/>\n(111)111-1111<\/code><\/p>\n<p>So how&#8217;d you go about loading a text file into MySQL where field values are given in a single column!!<br \/>\nIn the above sample, data has fields like company-name, address-1, address-2 and phone given in a text file line by line.<br \/>\nOfcourse you can write a piece of code in your choice of language: perl, shell, python&#8230;<br \/>\nBut can you do this by sheer power of MySQL by using some commands or functions only?<\/p>\n<p>Well, normally you will have to have a script for such data to be inserted into database. We always prefer the raw data \/ text file in the csv \/ tab separated (columns) file(s), which you can directly load to MySQL table as explained in my previous article: http:\/\/kedar.nitty-witty.com\/load-delimited-data-csv-excel-into-mysql-server<\/p>\n<p>But that&#8217;s not the case here. And hence I have a workaround to share. With little more efforts you can also automate \/ scriptize this. [ I&#8217;m feeling bit lazy now. \ud83d\ude09 ]<\/p>\n<p>Follow these steps:<br \/>\n&#8211; Save above data in a file [say c:\/main.txt considering windows]<br \/>\n&#8211; Connect to MySQL through commad prompt<\/p>\n<p>&#8211; Create a main table to load all data to process later.<\/p>\n<p><code>drop table if exists main; create table main ( id integer not null auto_increment primary key,alldata varchar(100), type int );<\/code><\/p>\n<p>&#8211; Load data to MySQL table:<\/p>\n<p><code>load data local infile 'C:\/mainfile.txt' into table main lines terminated by '\\r\\n' (alldata) set id=null;<br \/>\nset @var=0;update main set type=if(id mod 4 = 1,@var:=@var+1,@var);<\/code><\/p>\n<p>&#8211; Create table as per your requirement:<\/p>\n<p><code>create table company_details (<br \/>\ncompany varchar(100),<br \/>\nstreet varchar(100),<br \/>\ncitystatezip varchar(100),<br \/>\nphone varchar(100) );<\/code><\/p>\n<p>&#8211; Generate insert statement:<\/p>\n<p><code>select concat(\"insert into company_details (company,street,citystatezip,phone) values (\", my_values, \");\") from (select group_concat('\"',alldata,'\"') my_values from main group by type) X;<\/code><\/p>\n<p>you may alternatively redirect this data to a txt file and load it back to mysql!<\/p>\n<p>put above query in sql :<br \/>\n<code>mysql -uroot -ppassword database < generate_insert_query.sql > inserts.sql<\/code><\/p>\n<p>Finally load thus generated inserts to MySQL database table.<br \/>\n<code>mysql -uroot -ppassword database < inserts.sql<\/code><\/p>\n<p>I hope this helps many.<\/p>\n","protected":false},"excerpt":{"rendered":"Ever come accoss a situation where you have to load a flat text file into MySQL with data provided in single column! Say, your data to be loaded in table&hellip;\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8,377],"tags":[319,61,317,427,318,320,321],"class_list":["post-1749","post","type-post","status-publish","format-standard","category-mysql","category-mysql-articles","tag-columnar-data","tag-load-data","tag-load-text-file","tag-mysql","tag-mysql-database","tag-text-file","tag-text-to-mysql"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"An example to load columnar text file into MySQL table by command or function of mysql only.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Kedar\"\/>\n\t<meta name=\"google-site-verification\" content=\"_Bu1h5r0PxIC0D2jBVdmYN45RTeG9ogcX85XLkbG1qA\" \/>\n\t<meta name=\"msvalidate.01\" content=\"116B62074CBCA1BA99B8CCE09CCF2FB8\" \/>\n\t<meta name=\"keywords\" content=\"mysql,load text file,load data,mysql database,column file,text file,text to mysql,columnar data\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Change Is Inevitable | Kedar Vaijanapurkar&#039;s Blog for MySQL, technology and various subjects\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Load columnar text file into MySQL table | Change Is Inevitable\" \/>\n\t\t<meta property=\"og:description\" content=\"An example to load columnar text file into MySQL table by command or function of mysql only.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2012-05-03T16:21:08+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2014-06-24T18:55:50+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Load columnar text file into MySQL table | Change Is Inevitable\" \/>\n\t\t<meta name=\"twitter:description\" content=\"An example to load columnar text file into MySQL table by command or function of mysql only.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/load-columnar-text-file-into-mysql-table#article\",\"name\":\"Load columnar text file into MySQL table | Change Is Inevitable\",\"headline\":\"Load columnar text file into MySQL table\",\"author\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/load-columnar-text-file-into-mysql-table#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"},\"datePublished\":\"2012-05-03T16:21:08+00:00\",\"dateModified\":\"2014-06-24T18:55:50+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/load-columnar-text-file-into-mysql-table#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/load-columnar-text-file-into-mysql-table#webpage\"},\"articleSection\":\"MySQL, MySQL-Articles, columnar data, load data, load text file, MySQL, mysql database, text file, text to mysql\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/load-columnar-text-file-into-mysql-table#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"name\":\"MySQL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"position\":2,\"name\":\"MySQL\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"name\":\"MySQL-Articles\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"position\":3,\"name\":\"MySQL-Articles\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/load-columnar-text-file-into-mysql-table#listItem\",\"name\":\"Load columnar text file into MySQL table\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"name\":\"MySQL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/load-columnar-text-file-into-mysql-table#listItem\",\"position\":4,\"name\":\"Load columnar text file into MySQL table\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"name\":\"MySQL-Articles\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\",\"name\":\"Kedar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/load-columnar-text-file-into-mysql-table#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin\",\"name\":\"Kedar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/load-columnar-text-file-into-mysql-table#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/load-columnar-text-file-into-mysql-table#webpage\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/load-columnar-text-file-into-mysql-table\",\"name\":\"Load columnar text file into MySQL table | Change Is Inevitable\",\"description\":\"An example to load columnar text file into MySQL table by command or function of mysql only.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/load-columnar-text-file-into-mysql-table#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"datePublished\":\"2012-05-03T16:21:08+00:00\",\"dateModified\":\"2014-06-24T18:55:50+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/\",\"name\":\"..::CHANGE is INEVITABLE::..\",\"description\":\"Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Load columnar text file into MySQL table | Change Is Inevitable","description":"An example to load columnar text file into MySQL table by command or function of mysql only.","canonical_url":"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table","robots":"max-image-preview:large","keywords":"mysql,load text file,load data,mysql database,column file,text file,text to mysql,columnar data","webmasterTools":{"google-site-verification":"_Bu1h5r0PxIC0D2jBVdmYN45RTeG9ogcX85XLkbG1qA","msvalidate.01":"116B62074CBCA1BA99B8CCE09CCF2FB8","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table#article","name":"Load columnar text file into MySQL table | Change Is Inevitable","headline":"Load columnar text file into MySQL table","author":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"publisher":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"},"datePublished":"2012-05-03T16:21:08+00:00","dateModified":"2014-06-24T18:55:50+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table#webpage"},"isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table#webpage"},"articleSection":"MySQL, MySQL-Articles, columnar data, load data, load text file, MySQL, mysql database, text file, text to mysql"},{"@type":"BreadcrumbList","@id":"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/kedar.nitty-witty.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","name":"MySQL"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","position":2,"name":"MySQL","item":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","name":"MySQL-Articles"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","position":3,"name":"MySQL-Articles","item":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table#listItem","name":"Load columnar text file into MySQL table"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","name":"MySQL"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table#listItem","position":4,"name":"Load columnar text file into MySQL table","previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","name":"MySQL-Articles"}}]},{"@type":"Person","@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person","name":"Kedar","image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"}},{"@type":"Person","@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author","url":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin","name":"Kedar","image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"}},{"@type":"WebPage","@id":"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table#webpage","url":"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table","name":"Load columnar text file into MySQL table | Change Is Inevitable","description":"An example to load columnar text file into MySQL table by command or function of mysql only.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table#breadcrumblist"},"author":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"creator":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"datePublished":"2012-05-03T16:21:08+00:00","dateModified":"2014-06-24T18:55:50+00:00"},{"@type":"WebSite","@id":"https:\/\/kedar.nitty-witty.com\/blog\/#website","url":"https:\/\/kedar.nitty-witty.com\/blog\/","name":"..::CHANGE is INEVITABLE::..","description":"Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects","inLanguage":"en-US","publisher":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Change Is Inevitable | Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects","og:type":"article","og:title":"Load columnar text file into MySQL table | Change Is Inevitable","og:description":"An example to load columnar text file into MySQL table by command or function of mysql only.","og:url":"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table","article:published_time":"2012-05-03T16:21:08+00:00","article:modified_time":"2014-06-24T18:55:50+00:00","twitter:card":"summary","twitter:title":"Load columnar text file into MySQL table | Change Is Inevitable","twitter:description":"An example to load columnar text file into MySQL table by command or function of mysql only."},"aioseo_meta_data":{"post_id":"1749","title":"Load columnar text file into MySQL table | #site_title","description":"An example to load columnar text file into MySQL table by command or function of mysql only.","keywords":[{"label":"mysql","value":"mysql"},{"label":"load text file","value":"load text file"},{"label":"load data","value":"load data"},{"label":"mysql database","value":"mysql database"},{"label":"column file","value":"column file"},{"label":"text file","value":"text file"},{"label":"text to mysql","value":"text to mysql"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-24 17:43:00","updated":"2025-08-16 19:12:30","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\" title=\"MySQL\">MySQL<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles\" title=\"MySQL-Articles\">MySQL-Articles<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tLoad columnar text file into MySQL table\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/kedar.nitty-witty.com\/blog"},{"label":"MySQL","link":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql"},{"label":"MySQL-Articles","link":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles"},{"label":"Load columnar text file into MySQL table","link":"https:\/\/kedar.nitty-witty.com\/blog\/load-columnar-text-file-into-mysql-table"}],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/1749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/comments?post=1749"}],"version-history":[{"count":3,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/1749\/revisions"}],"predecessor-version":[{"id":1752,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/1749\/revisions\/1752"}],"wp:attachment":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/media?parent=1749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/categories?post=1749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/tags?post=1749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}