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.

select syntax.


Comments

Popular posts from this blog

Glib GIOChannel -

jsp - java.sql.SQLException: [Microsoft][ODBC Microsoft Access > Driver] Too few parameters. Expected 1 -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -