Generating a text file in MYSQL stored procedure

Posted by Pablo on Stack Overflow See other posts from Stack Overflow or by Pablo
Published on 2010-03-16T23:17:04Z Indexed on 2010/03/16 23:21 UTC
Read the original article Hit count: 466

Filed under:
|
|

Hi, I'm new to MySQL, I am trying to create a text file using a stored procedure. I'm currently at the stage where I have a temporary table that contains all of the records that I want to output to a text file. I have the following line at the end of my SP, it works in PHPMYAdmin's query but it does not work when part of a stored procedure the code is as follows:

SELECT * into outfile '../../htdocs/VIP/Temp/temp.txt' from tmp_Menu2;

note that tmp_Menu2 is a table that only includes one field of type VARCHAR(1000)

Any help would be greathly appreciated.

Thank you,

© Stack Overflow or respective owner

Related posts about stored-procedures

Related posts about mysql