{"id":204,"date":"2016-10-01T18:27:11","date_gmt":"2016-10-01T18:27:11","guid":{"rendered":"http:\/\/gearmage.com\/blog\/?p=204"},"modified":"2026-02-05T22:52:05","modified_gmt":"2026-02-05T22:52:05","slug":"save-csv-excels-to-a-database","status":"publish","type":"post","link":"https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/","title":{"rendered":"Save csv, excels to a database"},"content":{"rendered":"<p>If you have a need to save csv or excels\u00a0to a database, you can automate it with ease with <a href=\"https:\/\/gearmage.com\/buymaildownloader.html\">Mail Attachment Downloader PRO Server. <\/a><\/p>\n<p>If you already receive these csvs or excels on\u00a0email, then great we will show you how to save these to a database.<\/p>\n<p>If not, you can email these csvs to an email address of your choice and have the program extract the attachment and automatically save it giving great power to you on-the-go.<\/p>\n<h2>Save csv, excels to a database<\/h2>\n<p>First\u00a0ensure that you have a <a href=\"https:\/\/gearmage.com\/blog\/save-emails-and-attachments-to-a-database\/\">database connection configured as instructed here<\/a>.<\/p>\n<p>The next\u00a0step is \u00a0to create a Global rule filter so we can first identify the email that contains the csv, excel.\u00a0You can do so by adding a rule filter <a href=\"\/blog\/2016\/11\/01\/save-emails-and-attachments-to-folders\/\">as shown earlier in this blog post<\/a>. You can also specify a\u00a0file type filter to choose .csv or .xls or .xlsx emails with filtering rules.<\/p>\n<p>Once those are both\u00a0done, saving the csv or excels to a database requires you to add an action.<\/p>\n<ol>\n<li>Click <strong>Add action<\/strong> -&gt; choose\u00a0<strong>Extract csv and save to DB\u00a0<\/strong>and then click the\u00a0<strong>Load sample file<\/strong> button to load a sample Excel or Csv file.<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-211\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-9.59.32-AM.png?resize=744%2C295&#038;ssl=1\" alt=\"csv to db - load sample\" width=\"744\" height=\"295\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-9.59.32-AM.png?w=744&amp;ssl=1 744w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-9.59.32-AM.png?resize=300%2C119&amp;ssl=1 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/li>\n<li>Pick the sheet\u00a0from the <strong>Choose sheet<\/strong> dropdown you want to load data from.<a href=\"https:\/\/gearmage.com\/blog\/2016\/10\/01\/save-csv-excels-to-a-database\/screen-shot-2016-11-10-at-10-02-07-am\/\" rel=\"attachment wp-att-212\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-212\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.02.07-AM.png?resize=498%2C278&#038;ssl=1\" alt=\"csv to db - sheet\" width=\"498\" height=\"278\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.02.07-AM.png?w=498&amp;ssl=1 498w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.02.07-AM.png?resize=300%2C167&amp;ssl=1 300w\" sizes=\"auto, (max-width: 498px) 85vw, 498px\" \/><\/a><\/li>\n<li>Click the <strong>Load column names from sample file <\/strong>button. This will load the column names as cell id&#8217;s\u00a0(eg. A1, B1 etc.).<a href=\"https:\/\/gearmage.com\/blog\/2016\/10\/01\/save-csv-excels-to-a-database\/screen-shot-2016-11-10-at-10-03-06-am\/\" rel=\"attachment wp-att-213\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-213\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.03.06-AM.png?resize=474%2C66&#038;ssl=1\" alt=\"csv to db - load columns\" width=\"474\" height=\"66\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.03.06-AM.png?w=474&amp;ssl=1 474w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.03.06-AM.png?resize=300%2C42&amp;ssl=1 300w\" sizes=\"auto, (max-width: 474px) 85vw, 474px\" \/><\/a><\/li>\n<li>If your Excel\/Csv starts from a header row (with header titles for each column), check the <strong>Starts from a header row<\/strong> and then click the <strong>Load column names from sample file<\/strong> again. This will auto-import the column names for easier manageability.<a href=\"https:\/\/gearmage.com\/blog\/2016\/10\/01\/save-csv-excels-to-a-database\/screen-shot-2016-11-10-at-10-05-21-am\/\" rel=\"attachment wp-att-214\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-214\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.05.21-AM.png?resize=488%2C248&#038;ssl=1\" alt=\"csv to db - load columns with header row\" width=\"488\" height=\"248\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.05.21-AM.png?w=488&amp;ssl=1 488w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.05.21-AM.png?resize=300%2C152&amp;ssl=1 300w\" sizes=\"auto, (max-width: 488px) 85vw, 488px\" \/><\/a><\/li>\n<li>For each column you want to import, specify a field name within {} as shown below. By default all fields are imported as VARCHAR&#8217;s. If you want to change the type, you\u00a0can also choose Extraction Wizard for this field to change the field type or manipulate data from the Csv if needed.<a href=\"https:\/\/gearmage.com\/blog\/2016\/10\/01\/save-csv-excels-to-a-database\/screen-shot-2016-11-10-at-10-08-52-am\/\" rel=\"attachment wp-att-215\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-215\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.08.52-AM.png?resize=502%2C276&#038;ssl=1\" alt=\"Csv to db - field name\" width=\"502\" height=\"276\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.08.52-AM.png?w=502&amp;ssl=1 502w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.08.52-AM.png?resize=300%2C165&amp;ssl=1 300w\" sizes=\"auto, (max-width: 502px) 85vw, 502px\" \/><\/a><\/li>\n<li>Once all fields have been given a name within {}, click the\u00a0<strong>Insert into database <\/strong>tab. Pick the <a href=\"https:\/\/gearmage.com\/blog\/save-emails-and-attachments-to-a-database\/\">DB source you have already configured<\/a> and the table name you want the data inserted into.<a href=\"https:\/\/gearmage.com\/blog\/2016\/10\/01\/save-csv-excels-to-a-database\/screen-shot-2016-11-10-at-10-11-02-am\/\" rel=\"attachment wp-att-216\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-216\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.11.02-AM.png?resize=493%2C280&#038;ssl=1\" alt=\"csv to db - table name\" width=\"493\" height=\"280\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.11.02-AM.png?w=493&amp;ssl=1 493w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.11.02-AM.png?resize=300%2C170&amp;ssl=1 300w\" sizes=\"auto, (max-width: 493px) 85vw, 493px\" \/><\/a><\/li>\n<li>Now specify the SQL including fields that you want inserted as shown.<strong>INSERT INTO {TABLE_NAME} (&#8216;Sales description&#8217;, &#8216;Sales price&#8217;, &#8216;Sales quantity&#8217;) VALUES ({DESCRIPTION}, {PRICE}, {QUANTITY})<\/strong><a href=\"https:\/\/gearmage.com\/blog\/2016\/10\/01\/save-csv-excels-to-a-database\/screen-shot-2016-11-10-at-10-15-48-am\/\" rel=\"attachment wp-att-217\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-217\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.15.48-AM.png?resize=743%2C297&#038;ssl=1\" alt=\"csv to db - sql\" width=\"743\" height=\"297\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.15.48-AM.png?w=743&amp;ssl=1 743w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.15.48-AM.png?resize=300%2C120&amp;ssl=1 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a><\/li>\n<li>Now click the <strong>Test SQL using Sample File<\/strong> button. If everything is correct, then you should see something like the below. You can then look at the database to ensure that the rows from the Excel or CSV were inserted into the DB.\u00a0<a href=\"https:\/\/gearmage.com\/blog\/2016\/10\/01\/save-csv-excels-to-a-database\/screen-shot-2016-11-10-at-10-17-20-am\/\" rel=\"attachment wp-att-218\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-218\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.17.20-AM.png?resize=745%2C294&#038;ssl=1\" alt=\"csv to db - success\" width=\"745\" height=\"294\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.17.20-AM.png?w=745&amp;ssl=1 745w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-10.17.20-AM.png?resize=300%2C118&amp;ssl=1 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a><\/li>\n<\/ol>\n<p>That&#8217;s it.<\/p>\n<p>Now any emails matching the criteria would end up being added into the DB.<\/p>\n<h3>Further reading<\/h3>\n<p>Some interesting how-to links and posts for further exploration:<\/p>\n<ul>\n<li>Save <a href=\"https:\/\/gearmage.com\/blog\/save-emails-and-attachments-to-a-database\/\">emails to a database<\/a><\/li>\n<li>Save to\u00a0<a href=\"https:\/\/gearmage.com\/blog\/multiple-email-accounts-via-rules\/\">multiple folders from multiple accounts using multiple email rules<\/a>.<\/li>\n<li><a href=\"https:\/\/gearmage.com\/blog\/automate-sending-emails\/\">Send emails automatically<\/a>\u00a0after downloading files or attachments or body<\/li>\n<li><a href=\"https:\/\/gearmage.com\/blog\/email-actions-unzip-convert-pdf-run-script\/\">Unzip files, Decrypt pdf&#8217;s and run script&#8217;s<\/a><\/li>\n<li>Extract data and\u00a0<a href=\"https:\/\/gearmage.com\/blog\/emails-invoice-processing\/\">download emails for invoice processing<\/a><\/li>\n<li><a href=\"https:\/\/gearmage.com\/blog\/convert-email-attachments-to-pdf\/\">Convert email attachments<\/a>\u00a0to different formats<\/li>\n<li>How\u00a0<a href=\"https:\/\/gearmage.com\/blog\/extract-emails-integrate\/\">email rules work<\/a>\u00a0in-depth<\/li>\n<\/ul>\n<h3>Contact us<\/h3>\n<p><a href=\"mailto:support@gearmage.com\">Contact us<\/a>\u00a0if you have any questions, suggestions about the\u00a0functionality described in this article.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have a need to save csv or excels\u00a0to a database, you can automate it with ease with Mail Attachment Downloader PRO Server. If you already receive these csvs or excels on\u00a0email, then great we will show you how to save these to a database. If not, you can email these csvs to an &hellip; <a href=\"https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Save csv, excels to a database&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,6],"tags":[84,75,83,81,82],"class_list":["post-204","post","type-post","status-publish","format-standard","hentry","category-mad","category-tips","tag-database","tag-email","tag-email-attachment","tag-save-csv-to-database","tag-save-excel-to-database"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Save csv, excels to a database - Gearmage Blog<\/title>\n<meta name=\"description\" content=\"Save csv, excels to a database with ease. Configure Mail Attachment Downloader PRO Server to automatically save Excel, Csv&#039;s from emails to a database!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Save csv, excels to a database - Gearmage Blog\" \/>\n<meta property=\"og:description\" content=\"Save csv, excels to a database with ease. Configure Mail Attachment Downloader PRO Server to automatically save Excel, Csv&#039;s from emails to a database!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/\" \/>\n<meta property=\"og:site_name\" content=\"Gearmage Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-01T18:27:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-05T22:52:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-9.59.32-AM.png\" \/>\n<meta name=\"author\" content=\"gearmage\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"gearmage\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/save-csv-excels-to-a-database\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/save-csv-excels-to-a-database\\\/\"},\"author\":{\"name\":\"gearmage\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#\\\/schema\\\/person\\\/c8728645787bff3555b5873b43161652\"},\"headline\":\"Save csv, excels to a database\",\"datePublished\":\"2016-10-01T18:27:11+00:00\",\"dateModified\":\"2026-02-05T22:52:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/save-csv-excels-to-a-database\\\/\"},\"wordCount\":541,\"publisher\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/save-csv-excels-to-a-database\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/Screen-Shot-2016-11-10-at-9.59.32-AM.png\",\"keywords\":[\"database\",\"email\",\"email attachment\",\"save csv to database\",\"save excel to database\"],\"articleSection\":[\"Mail Attachment Downloader\",\"Tips\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/save-csv-excels-to-a-database\\\/\",\"url\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/save-csv-excels-to-a-database\\\/\",\"name\":\"Save csv, excels to a database - Gearmage Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/save-csv-excels-to-a-database\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/save-csv-excels-to-a-database\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/Screen-Shot-2016-11-10-at-9.59.32-AM.png\",\"datePublished\":\"2016-10-01T18:27:11+00:00\",\"dateModified\":\"2026-02-05T22:52:05+00:00\",\"description\":\"Save csv, excels to a database with ease. Configure Mail Attachment Downloader PRO Server to automatically save Excel, Csv's from emails to a database!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/save-csv-excels-to-a-database\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gearmage.com\\\/blog\\\/save-csv-excels-to-a-database\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/save-csv-excels-to-a-database\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/Screen-Shot-2016-11-10-at-9.59.32-AM.png?fit=744%2C295&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/Screen-Shot-2016-11-10-at-9.59.32-AM.png?fit=744%2C295&ssl=1\",\"width\":744,\"height\":295,\"caption\":\"csv to db - load sample\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/save-csv-excels-to-a-database\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Save csv, excels to a database\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/\",\"name\":\"Gearmage Blog\",\"description\":\"Email Processing Tools and Solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#organization\",\"name\":\"Gearmage\",\"url\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/02\\\/cropped-cropped-GearMage.jpg?fit=240%2C58&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/02\\\/cropped-cropped-GearMage.jpg?fit=240%2C58&ssl=1\",\"width\":240,\"height\":58,\"caption\":\"Gearmage\"},\"image\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#\\\/schema\\\/person\\\/c8728645787bff3555b5873b43161652\",\"name\":\"gearmage\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g\",\"caption\":\"gearmage\"},\"url\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/author\\\/wp-admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Save csv, excels to a database - Gearmage Blog","description":"Save csv, excels to a database with ease. Configure Mail Attachment Downloader PRO Server to automatically save Excel, Csv's from emails to a database!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/","og_locale":"en_US","og_type":"article","og_title":"Save csv, excels to a database - Gearmage Blog","og_description":"Save csv, excels to a database with ease. Configure Mail Attachment Downloader PRO Server to automatically save Excel, Csv's from emails to a database!","og_url":"https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/","og_site_name":"Gearmage Blog","article_published_time":"2016-10-01T18:27:11+00:00","article_modified_time":"2026-02-05T22:52:05+00:00","og_image":[{"url":"https:\/\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-9.59.32-AM.png","type":"","width":"","height":""}],"author":"gearmage","twitter_card":"summary_large_image","twitter_misc":{"Written by":"gearmage","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/#article","isPartOf":{"@id":"https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/"},"author":{"name":"gearmage","@id":"https:\/\/gearmage.com\/blog\/#\/schema\/person\/c8728645787bff3555b5873b43161652"},"headline":"Save csv, excels to a database","datePublished":"2016-10-01T18:27:11+00:00","dateModified":"2026-02-05T22:52:05+00:00","mainEntityOfPage":{"@id":"https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/"},"wordCount":541,"publisher":{"@id":"https:\/\/gearmage.com\/blog\/#organization"},"image":{"@id":"https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/#primaryimage"},"thumbnailUrl":"https:\/\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-9.59.32-AM.png","keywords":["database","email","email attachment","save csv to database","save excel to database"],"articleSection":["Mail Attachment Downloader","Tips"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/","url":"https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/","name":"Save csv, excels to a database - Gearmage Blog","isPartOf":{"@id":"https:\/\/gearmage.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/#primaryimage"},"image":{"@id":"https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/#primaryimage"},"thumbnailUrl":"https:\/\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-9.59.32-AM.png","datePublished":"2016-10-01T18:27:11+00:00","dateModified":"2026-02-05T22:52:05+00:00","description":"Save csv, excels to a database with ease. Configure Mail Attachment Downloader PRO Server to automatically save Excel, Csv's from emails to a database!","breadcrumb":{"@id":"https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/#primaryimage","url":"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-9.59.32-AM.png?fit=744%2C295&ssl=1","contentUrl":"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-10-at-9.59.32-AM.png?fit=744%2C295&ssl=1","width":744,"height":295,"caption":"csv to db - load sample"},{"@type":"BreadcrumbList","@id":"https:\/\/gearmage.com\/blog\/save-csv-excels-to-a-database\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gearmage.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Save csv, excels to a database"}]},{"@type":"WebSite","@id":"https:\/\/gearmage.com\/blog\/#website","url":"https:\/\/gearmage.com\/blog\/","name":"Gearmage Blog","description":"Email Processing Tools and Solutions","publisher":{"@id":"https:\/\/gearmage.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gearmage.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/gearmage.com\/blog\/#organization","name":"Gearmage","url":"https:\/\/gearmage.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gearmage.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/02\/cropped-cropped-GearMage.jpg?fit=240%2C58&ssl=1","contentUrl":"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/02\/cropped-cropped-GearMage.jpg?fit=240%2C58&ssl=1","width":240,"height":58,"caption":"Gearmage"},"image":{"@id":"https:\/\/gearmage.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/gearmage.com\/blog\/#\/schema\/person\/c8728645787bff3555b5873b43161652","name":"gearmage","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g","caption":"gearmage"},"url":"https:\/\/gearmage.com\/blog\/author\/wp-admin\/"}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/posts\/204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/comments?post=204"}],"version-history":[{"count":8,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/posts\/204\/revisions"}],"predecessor-version":[{"id":996,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/posts\/204\/revisions\/996"}],"wp:attachment":[{"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/media?parent=204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/categories?post=204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/tags?post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}