Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

mysql query result to file

mysql -user -pass -e "select cols from table where cols not null" > /tmp/output
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #query #result #file
ADD COMMENT
Topic
Name
3+2 =