문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top