SELECT * INTO OUTFILE '/home/user/all.csv'
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
FROM [Table name];
SELECT item1,item2 INTO OUTFILE '/home/user/items.csv'
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
FROM [Table name];
SELECT content INTO OUTFILE '/home/user/content.csv'
LINES TERMINATED BY '\n'
FROM [Table name];