nohup mysql -uroot drdb -e "select c_imei as IMEI, c_last_seen_imsi as IMSI, c_msisdn as MSISDN from tb_e A, tb_m B where A.c_last_seen_imsi=B.c_imsi into outfile '/apps/duinfo.txt';" &
In the above command, I can see the out file generated. But the column name is not specified. How do I specify column name for the out file?
NB: The answer to the question "Include headers when using SELECT INTO OUTFILE?" didn't resolve my issue.