SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: exporting from MYSQL

  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 silver trophybronze trophy
    SitePoint Award Recipient r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    38,455
    Mentioned
    34 Post(s)
    Tagged
    1 Thread(s)
    try this -- INTO OUTFILE '/SQL_Output/tmp1.txt'
    r937.com | rudy.ca | 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
  •