convert tz - Looking for a way to Query data from MySQL database & write it to a output txt file -
looking way query data mysql database & write output txt file. trying query linux server db remote windows box.
mysql query:
mysql -u xxx -pxxx -h ttplxapp-esm01.abc.com -d telalert -e "select max(convert_tz(start_time,\"+00:00\",\"-04:00\")) time,group_concat(username separator \" \") contact, message message sends convert_tz(start_time,\"+00:00\",\"-4:00\") \"$query_date%\" group alert_id order time desc ;"
a java script or script ideal.
try select...from
statement into outfile
clause.
Comments
Post a Comment