faqts : Computers : Programming : Languages : PHP : Database Backed Sites : MySQL

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

19 of 35 people (54%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

How can I export the results of a MySQL query into a text file?

Jun 28th, 1999 01:31
Nathan Wallace, Padraic


Try the SELECT ... INTO OUTFILE syntax. See

    http://www.mysql.net/Manual_chapter/manual_Reference.html#SELECT

for more info. You can set the output filename, as well as other
options.