<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tech-Recipes - Latest Comments in Save MySQL query results into a text or CSV file | MySQL | Tech-Recipes</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><language>en</language><lastBuildDate>Sun, 25 Oct 2009 09:20:59 -0000</lastBuildDate><item><title>Re: Save MySQL query results into a text or CSV file | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/#comment-20981533</link><description>Hi,&lt;br&gt;&lt;br&gt;Also discovered that including the 'optionally' keyword, eg:&lt;br&gt;&lt;br&gt;... optionally enclosed by '"' ...&lt;br&gt;&lt;br&gt;that MySQL will decide which fields (eg. text, char etc) need enclosing in double quotes and which fields (eg. int, float etc) do not in order to comply with strict CSV format. Depending on your table make-up &amp; size, this too is a great time saver. Mant thanks again for pointing me (and many others) in the right direction.&lt;br&gt;&lt;br&gt;Reg.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">regbailey</dc:creator><pubDate>Sun, 25 Oct 2009 09:20:59 -0000</pubDate></item><item><title>Re: Save MySQL query results into a text or CSV file | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/#comment-20924172</link><description>Thank you very much indeed. Your article has just saved me a tremdous amount of time, trouble &amp; effort. An excellent example of the web being used as it should be.&lt;br&gt;&lt;br&gt;Many thanks again.&lt;br&gt;&lt;br&gt;Reg Bailey.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">regbailey</dc:creator><pubDate>Sat, 24 Oct 2009 08:21:20 -0000</pubDate></item><item><title>Re: Save MySQL query results into a text or CSV file | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/#comment-20922032</link><description>how a very few lines may save lots of time.....&lt;br&gt;thanks a lot!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">augusto</dc:creator><pubDate>Sat, 24 Oct 2009 06:13:21 -0000</pubDate></item><item><title>Re: Save MySQL query results into a text or CSV file | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/#comment-14712697</link><description>"Thanks for this, a MySQL noob like myself always forgets the exact syntax!&lt;br&gt;&lt;br&gt;Bookmarked."&lt;br&gt;&lt;br&gt;it was those people who memorized syntax or function than understanding what a language can do or cant do was noob.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">palcb</dc:creator><pubDate>Wed, 12 Aug 2009 09:53:10 -0000</pubDate></item><item><title>Re: Save MySQL query results into a text or CSV file | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/#comment-14429463</link><description>For oracle ,you can use toad</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">danishm</dc:creator><pubDate>Fri, 07 Aug 2009 09:26:27 -0000</pubDate></item><item><title>Re: Save MySQL query results into a text or CSV file | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/#comment-13113452</link><description>I got the same problem when I connect to a remote database server. The file is created on the remote server.&lt;br&gt;&lt;br&gt;Anyone know how to get this file created on the local host?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sven</dc:creator><pubDate>Wed, 22 Jul 2009 11:53:08 -0000</pubDate></item><item><title>Re: Save MySQL query results into a text or CSV file | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/#comment-12993021</link><description>can u tell me how can i get the column names along wtiht the result set</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">shiv`</dc:creator><pubDate>Tue, 21 Jul 2009 08:01:40 -0000</pubDate></item><item><title>Re: Save MySQL query results into a text or CSV file | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/#comment-12067853</link><description>This happens only if you have executed the query twice and redirecting it to same location with same name otherwise rest is fine.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Udit Chaudhary</dc:creator><pubDate>Fri, 03 Jul 2009 07:30:15 -0000</pubDate></item><item><title>Re: Save MySQL query results into a text or CSV file | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/#comment-11610724</link><description>I dont know y the new line operator is not at all working in my MySql...&lt;br&gt;am using version 5.0...&lt;br&gt;&lt;br&gt;&lt;br&gt;could some one plz help me out................</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jai</dc:creator><pubDate>Tue, 23 Jun 2009 04:52:40 -0000</pubDate></item><item><title>Re: Save MySQL query results into a text or CSV file | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/#comment-9490509</link><description>Just like this:&lt;br&gt;&lt;br&gt;SELECT order_id,product_name,qty&lt;br&gt;FROM orders&lt;br&gt;INTO OUTFILE 'c:/tmp/orders.csv'&lt;br&gt;&lt;br&gt;Just type in the drive you want.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Heini</dc:creator><pubDate>Mon, 18 May 2009 08:06:27 -0000</pubDate></item><item><title>Re: Save MySQL query results into a text or CSV file | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/#comment-9050170</link><description>How can I used a a date value in the output file?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leion</dc:creator><pubDate>Wed, 06 May 2009 05:32:02 -0000</pubDate></item><item><title>Re: Save MySQL query results into a text or CSV file | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/#comment-8805824</link><description>Is there a similar  thing available in oracle?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sumesh</dc:creator><pubDate>Wed, 29 Apr 2009 06:57:31 -0000</pubDate></item><item><title>Re: Save MySQL query results into a text or CSV file | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/#comment-8571252</link><description>I am facing the same problem. Did you find the answer?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Amit</dc:creator><pubDate>Wed, 22 Apr 2009 11:05:50 -0000</pubDate></item><item><title>Re: Save MySQL query results into a text or CSV file | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/#comment-7282376</link><description>Thanks for the helpful post but my problem is that when i execute the query and go to the location where i saved the file, i can't find any file there. However if i again try the same command it says "File already exists" but actually there is not. Wha'ts wrong?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sshah</dc:creator><pubDate>Tue, 17 Mar 2009 05:06:44 -0000</pubDate></item><item><title>Re: Save MySQL query results into a text or CSV file | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/#comment-6717061</link><description>Thanks for this, a MySQL noob like myself always forgets the exact syntax!&lt;br&gt;&lt;br&gt;Bookmarked.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike</dc:creator><pubDate>Fri, 27 Feb 2009 21:24:17 -0000</pubDate></item></channel></rss>