0

I am trying to save the result of my query into a .csv file. this is how I am doing it.

.output train1.csv
SELECT * FROM table1;

The problem is that when I specify a path in .output, the output get displayed on screen as oppose saved in the specified .csv file.

 .output ~/PycharmProjects/ROSSMANN/input/crossval/train1.csv
SELECT * FROM table1;
MAS
  • 4,503
  • 7
  • 32
  • 55

1 Answers1

0

~ is not a valid directoy name. The shell will replace it with the home directory, but most other programs don't know about it.

Use the actual directory name:

.output /home/MAS/PycharmProjects/ROSSMANN/input/crossval/train1.csv
CL.
  • 173,858
  • 17
  • 217
  • 259
  • Changing it didn't fix my problem. /Users/mas/PycharmProjects/ROSSMANN/input/crossval/train1.csv – MAS Dec 08 '15 at 19:30