-
Website
http://www.tech-recipes.com/ -
Original page
http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
davak
83 comments · 1 points
-
Web Design
3 comments · 1 points
-
danishbacker
9 comments · 1 points
-
flexinfo
11 comments · 1 points
-
Tonychelle
4 comments · 1 points
-
-
Popular Threads
-
Facebook: How To Get Only Status Updates on Your FB Home Page
1 week ago · 4 comments
-
Firefox: Enable Case Sensitive Searches When Using Find (Ctrl+F)
5 days ago · 1 comment
-
Firefox 3.6: Enable Visual Previews When Using Ctrl+Tab (Windows Only)
6 days ago · 1 comment
-
Windows 7: How To Disable Live Preview for Taskbar Thumbnails
2 weeks ago · 2 comments
-
Gmail: How to block a sender from your inbox
3 weeks ago · 3 comments
-
Facebook: How To Get Only Status Updates on Your FB Home Page
Bookmarked.
SELECT order_id,product_name,qty
FROM orders
INTO OUTFILE 'c:/tmp/orders.csv'
Just type in the drive you want.
Anyone know how to get this file created on the local host?
am using version 5.0...
could some one plz help me out................
Bookmarked."
it was those people who memorized syntax or function than understanding what a language can do or cant do was noob.
thanks a lot!
Many thanks again.
Reg Bailey.
Also discovered that including the 'optionally' keyword, eg:
... optionally enclosed by '"' ...
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 & size, this too is a great time saver. Mant thanks again for pointing me (and many others) in the right direction.
Reg.