How to output MySQL query results in CSV format? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to output MySQL query results in CSV format?

How to output MySQL query results in CSV format?

23rd Jul 2017, 3:46 PM
Bhaumik Raja
Bhaumik Raja - avatar
1 Answer
0
You can use terminal/command prompt and use the following method; "SELECT * FROM MyDatabse.dbo.MyTable" queryout C:\MySqlData.csv -c -t',' -T -S .\SQLEXPRESS
24th Jul 2017, 9:52 PM
Aubrey Love
Aubrey Love - avatar