MySQL Forums
Forum List  »  Newbie

Shell Command for executing query
Posted by: MuraliDharan V
Date: December 05, 2014 03:17AM

Dear Experts,

Is that anyway i can write my query resultset to excel file with field alignments.

I came across the command,
mysql -u <username> -h <hostname> -p -e " SELECT FIELD1,FIELD2 FROM TABLE" > /var/www/test.xls

I got the result in excel but the field values are aligned automatically, is that any way i can assign field values alignment like 'Left' ,' Right' or 'Justify'.

Help me in this..

Thanks,
Murali.V

Options: ReplyQuote


Subject
Written By
Posted
Shell Command for executing query
December 05, 2014 03:17AM
January 06, 2015 11:28PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.