mysql -u st_user -paqpuBLYzEV7tML5RPsN1pntUzFy-h 172.16.40.158 -P 4000 -D jerry_test -e"delete from kafka_tag3_log where log_time < UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 60 day))"
# portrait1
mysql -u st_user -paqpuBLYzEV7tML5RPsN1pntUzFy-h 172.16.40.158 -P 4000 -D jerry_test -e"delete from user_tag3_portrait where date < DATE_SUB(CURDATE(), INTERVAL 15 day) and substr(md5(cl_id), -1, 1) IN ('0', '1', '2')"
mysql -u st_user -paqpuBLYzEV7tML5RPsN1pntUzFy-h 172.16.40.158 -P 4000 -D jerry_test -e"delete from user_tag3_portrait where date < DATE_SUB(CURDATE(), INTERVAL 15 day) and substr(md5(cl_id), -1, 1) IN ('3', '4', '5')"
mysql -u st_user -paqpuBLYzEV7tML5RPsN1pntUzFy-h 172.16.40.158 -P 4000 -D jerry_test -e"delete from user_tag3_portrait where date < DATE_SUB(CURDATE(), INTERVAL 15 day) and substr(md5(cl_id), -1, 1) IN ('6', '7', '8')"
mysql -u st_user -paqpuBLYzEV7tML5RPsN1pntUzFy-h 172.16.40.158 -P 4000 -D jerry_test -e"delete from user_tag3_portrait where date < DATE_SUB(CURDATE(), INTERVAL 15 day) and substr(md5(cl_id), -1, 1) IN ('a', 'b', 'c')"
mysql -u st_user -paqpuBLYzEV7tML5RPsN1pntUzFy-h 172.16.40.158 -P 4000 -D jerry_test -e"delete from user_tag3_portrait where date < DATE_SUB(CURDATE(), INTERVAL 15 day)"
# portrait2
mysql -u st_user -paqpuBLYzEV7tML5RPsN1pntUzFy-h 172.16.40.158 -P 4000 -D jerry_test -e"delete from user_tag3_event_portrait where date < DATE_SUB(CURDATE(), INTERVAL 15 day) and substr(md5(cl_id), -1, 1) IN ('0', '1', '2')"
mysql -u st_user -paqpuBLYzEV7tML5RPsN1pntUzFy-h 172.16.40.158 -P 4000 -D jerry_test -e"delete from user_tag3_event_portrait where date < DATE_SUB(CURDATE(), INTERVAL 15 day) and substr(md5(cl_id), -1, 1) IN ('3', '4', '5')"
mysql -u st_user -paqpuBLYzEV7tML5RPsN1pntUzFy-h 172.16.40.158 -P 4000 -D jerry_test -e"delete from user_tag3_event_portrait where date < DATE_SUB(CURDATE(), INTERVAL 15 day) and substr(md5(cl_id), -1, 1) IN ('6', '7', '8')"
mysql -u st_user -paqpuBLYzEV7tML5RPsN1pntUzFy-h 172.16.40.158 -P 4000 -D jerry_test -e"delete from user_tag3_event_portrait where date < DATE_SUB(CURDATE(), INTERVAL 15 day) and substr(md5(cl_id), -1, 1) IN ('a', 'b', 'c')"
mysql -u st_user -paqpuBLYzEV7tML5RPsN1pntUzFy-h 172.16.40.158 -P 4000 -D jerry_test -e"delete from user_tag3_event_portrait where date < DATE_SUB(CURDATE(), INTERVAL 15 day)"