Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql output csv

-- If you are using linux,

SELECT id, filename
FROM attachments
INTO OUTFILE '/tmp/results.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '
';
-- and find the csv file /tmp
 
PREVIOUS NEXT
Tagged: #mysql #output #csv
ADD COMMENT
Topic
Name
2+6 =