Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

output to file mysql

Copied SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt'
  FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
  LINES TERMINATED BY '
'
  FROM test_table;
Source by dev.mysql.com #
 
PREVIOUS NEXT
Tagged: #output #file #mysql
ADD COMMENT
Topic
Name
9+5 =