从linux中的mysql数据库提取数据直接生成txt文件。

时间:2022-06-25 12:28:33

指令例子

echo "select distinct(dest_term_ids) from submit_logs where service_id='lytsb00020' or service_id='lytsa10400'" |mysql -u smgp smgp -p>temp0706.txt