In SQL server I tried to export a CSV file using below command
mysql> mysql -u username -p --host=rdshostname --port=rdsport --batch -e "select * from yourtable" | sed 's/\t/","/g;s/^/"/;s/$/"/;s/\n//' > export.csv
But no luck, So How I can export the above query result to CSV file?