Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8946771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:35:28+00:00 2026-06-15T12:35:28+00:00

select * INTO OUTFILE ‘outfile.txt’ FIELDS TERMINATED by ‘,’ LINES TERMINATED BY ‘\n’ from

  • 0
select * 
  INTO OUTFILE 'outfile.txt'
  FIELDS TERMINATED by ','
  LINES TERMINATED BY '\n'
  from nGrams

Is there any way I can modify this query to return each row on one line?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:35:28+00:00Added an answer on June 15, 2026 at 12:35 pm

    Seems like thats exactly what it would do already.

    However, if you are doing this on Windows, you might want to use LINES TERMINATED BY '\r\n' or some crappy text editors (e.g. notepad) might not see \n by itself as a line break

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I run the following query SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt' FIELDS TERMINATED BY
I'm writing this in JAVA : stmt.executeQuery(SELECT * FROM mytable INTO OUTFILE '/tmp/mytable.csv' FIELDS
mysql_connect(localhost,root,); mysql_select_db(hitnrunf_db); $result=mysql_query(select * from jos_users INTO OUTFILE 'users.csv' FIELDS ESCAPED BY '' TERMINATED
When I run mysql> select * into outfile /home/akihirom/file1.txt from BAIT_INTERACTION; I get the
I'm trying to export the DB records from the table via SELECT INTO OUTFILE.
I have to make SELECT column1,column2 INTO OUTFILE 'out_1.csv' FROM table1 WHERE column1.name =
I have created some file from mysql command i.e. select * into outfile '/tmp/abc.csv'
I'm using a SELECT INTO OUTFILE to extract rows from a database into CSV.
The web application I'm currently developing supports CSV export from (using SELECT INTO OUTFILE)
I wrote a query in this format.. Select * INTO #xyz FROM () which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.