Answers for "mysql command output to file"

SQL
1

mysql query result to file

mysql -user -pass -e "select cols from table where cols not null" > /tmp/output
Posted by: Guest on June-01-2020
0

output to file mysql

Copied SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt'
  FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
  LINES TERMINATED BY 'n'
  FROM test_table;
Posted by: Guest on August-31-2021

Code answers related to "mysql command output to file"

Code answers related to "SQL"

Browse Popular Code Answers by Language