Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Posts
    1

    Unanswered: write query results to a file

    How can I write query results to a file using a stored procedure?

  2. #2
    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

  3. #3
    Join Date
    Oct 2003
    Location
    Slovakia
    Posts
    482

    Re: write query results to a file

    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •