{"id":1400,"date":"2012-04-13T14:55:39","date_gmt":"2012-04-13T14:55:39","guid":{"rendered":"http:\/\/www.withdata.com\/ad\/?p=1400"},"modified":"2012-04-13T14:55:39","modified_gmt":"2012-04-13T14:55:39","slug":"csv-to-sql-online-update-fixed-bug-of-tailing-delimiter","status":"publish","type":"post","link":"https:\/\/www.withdata.com\/blog\/data-convert-online\/csv-to-sql-online-update-fixed-bug-of-tailing-delimiter.html","title":{"rendered":"CSV-To-SQL online update: fixed bug of &#8220;tailing delimiter&#8221;"},"content":{"rendered":"<p>When the heading has a tailing delimiter, it will create wrong <a href=\"https:\/\/en.wikipedia.org\/wiki\/SQL\">SQL<\/a> file, like:<\/p>\n<p>insert into table_1 (field_1,field_2,,) VALUES(&#8216;data1&#8242;,&#8217;data2&#8217;,&#8221;);<\/p>\n<p>Now it be fixed, you can try: <a href=\"http:\/\/www.withdata.com\/data-convert\/\">http:\/\/www.withdata.com\/data-convert\/csv-to-sql.php<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When the heading has a tailing delimiter, it will create wrong SQL file, like: insert into table_1 (field_1,field_2,,) VALUES(&#8216;data1&#8242;,&#8217;data2&#8217;,&#8221;); Now it be fixed, you can try: http:\/\/www.withdata.com\/data-convert\/csv-to-sql.php<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[181],"tags":[1355],"class_list":["post-1400","post","type-post","status-publish","format-standard","hentry","category-data-convert-online","tag-fix"],"_links":{"self":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/1400","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/comments?post=1400"}],"version-history":[{"count":1,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/1400\/revisions"}],"predecessor-version":[{"id":1401,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/1400\/revisions\/1401"}],"wp:attachment":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/media?parent=1400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/categories?post=1400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/tags?post=1400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}