SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile exporting from MYSQL

    I am new to SQL trying to export a table from MYSQL using a simple select query:
    SELECT *
    INTO OUTFILE "C :\SQL_Output\tmp1.txt"
    FROM sneem;
    I get a positive response from the command line:
    Query OK, 14 rows affected (0.05 sec)
    But there is no output file created! What is the problem?

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,250
    Mentioned
    59 Post(s)
    Tagged
    3 Thread(s)
    try this -- INTO OUTFILE '/SQL_Output/tmp1.txt'
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Brill ! First time using Sitepoint and got an answer that worked. Many thanks.


Bookmarks

Posting Permissions

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