shell 查询mysql 导出部分数据

$ mysql -u monitor -p 111111  -e "select * from monitor_field where create_time between '2018-01-09 00:00:00'and '2018-01-09 17:00:00'  " > monitor.out  
Enter password:  

你可能感兴趣的:(mysql)