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;