If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > write query results to a file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-17-03, 16:21
chlorisw chlorisw is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
write query results to a file

How can I write query results to a file using a stored procedure?
Reply With Quote
  #2 (permalink)  
Old 10-17-03, 18:17
gnet gnet is offline
Registered User
 
Join Date: Jul 2003
Posts: 30
Re: write query results to a file

If you're not using 4.1 you can't ... and even if you were, I wouldn't know how.

But you could do:

Code:
SELECT <select_options>
INTO OUTFILE '/path/file.txt'
FROM TABLE


http://www.mysql.com/doc/en/SELECT.html
Reply With Quote
  #3 (permalink)  
Old 10-22-03, 07:11
ika ika is offline
Registered User
 
Join Date: Oct 2003
Location: Slovakia
Posts: 482
Re: write query results to a file

Quote:
Originally posted by chlorisw
How can I write query results to a file using a stored procedure?
MySQL does not supporting stored procedures. Stored procedures are planed from 5.0 version...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On