sql query result to csv file directly from console -
i want export select
query result 2 columns csv
file. don't have phpmyadmin or tools this. have run query directly console. can give me hint how can this?
you try use command:
select field_1,field_2 table_name outfile '/tmp/output.csv' fields terminated ',' enclosed '"' lines terminated '\n';
Comments
Post a Comment