mysql -u doris -po5gbA27hXHHm-h 172.16.30.136 -D doris_prod -P 3306 -e"delete from kafka_tag3_log where log_time < UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 90 day))"
mysql -ust_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 90 day))"
mysql -udoris -po5gbA27hXHHm-h 172.16.50.175 -P 3306 -D doris_olap-e"delete from kafka_tag3_log where log_time < UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 90 day))"
# portrait stats 30days
# portrait1
mysql -ust_user -paqpuBLYzEV7tML5RPsN1pntUzFy-h 172.16.40.158 -P 4000 -D jerry_test-e"delete from user_tag3_portrait where date < DATE_SUB(CURDATE(), INTERVAL 60 day) and substr(md5(cl_id), -1, 1) IN ('0', '1', '2')"
mysql -udoris -po5gbA27hXHHm-h 172.16.50.175 -P 3306 -D doris_olap-e"delete from user_tag3_portrait where date < DATE_SUB(CURDATE(), INTERVAL 60 day) and substr(md5(cl_id), -1, 1) IN ('0', '1', '2')"
mysql -ust_user -paqpuBLYzEV7tML5RPsN1pntUzFy-h 172.16.40.158 -P 4000 -D jerry_test-e"delete from user_tag3_portrait where date < DATE_SUB(CURDATE(), INTERVAL 60 day) and substr(md5(cl_id), -1, 1) IN ('3', '4', '5')"
mysql -udoris -po5gbA27hXHHm-h 172.16.50.175 -P 3306 -D doris_olap-e"delete from user_tag3_portrait where date < DATE_SUB(CURDATE(), INTERVAL 60 day) and substr(md5(cl_id), -1, 1) IN ('3', '4', '5')"
mysql -ust_user -paqpuBLYzEV7tML5RPsN1pntUzFy-h 172.16.40.158 -P 4000 -D jerry_test-e"delete from user_tag3_portrait where date < DATE_SUB(CURDATE(), INTERVAL 60 day) and substr(md5(cl_id), -1, 1) IN ('6', '7', '8')"
mysql -udoris -po5gbA27hXHHm-h 172.16.50.175 -P 3306 -D doris_olap-e"delete from user_tag3_portrait where date < DATE_SUB(CURDATE(), INTERVAL 60 day) and substr(md5(cl_id), -1, 1) IN ('6', '7', '8')"
mysql -ust_user -paqpuBLYzEV7tML5RPsN1pntUzFy-h 172.16.40.158 -P 4000 -D jerry_test-e"delete from user_tag3_portrait where date < DATE_SUB(CURDATE(), INTERVAL 60 day) and substr(md5(cl_id), -1, 1) IN ('a', 'b', 'c')"
mysql -udoris -po5gbA27hXHHm-h 172.16.50.175 -P 3306 -D doris_olap-e"delete from user_tag3_portrait where date < DATE_SUB(CURDATE(), INTERVAL 60 day) and substr(md5(cl_id), -1, 1) IN ('a', 'b', 'c')"
mysql -ust_user -paqpuBLYzEV7tML5RPsN1pntUzFy-h 172.16.40.158 -P 4000 -D jerry_test-e"delete from user_tag3_portrait where date < DATE_SUB(CURDATE(), INTERVAL 60 day)"
mysql -udoris -po5gbA27hXHHm-h 172.16.50.175 -P 3306 -D doris_olap-e"delete from user_tag3_portrait where date < DATE_SUB(CURDATE(), INTERVAL 60 day)"
# portrait2
mysql -ust_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 60 day) and substr(md5(cl_id), -1, 1) IN ('0', '1', '2')"
mysql -udoris -po5gbA27hXHHm-h 172.16.50.175 -P 3306 -D doris_olap-e"delete from user_tag3_event_portrait where date < DATE_SUB(CURDATE(), INTERVAL 60 day) and substr(md5(cl_id), -1, 1) IN ('0', '1', '2')"
mysql -ust_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 60 day) and substr(md5(cl_id), -1, 1) IN ('3', '4', '5')"
mysql -udoris -po5gbA27hXHHm-h 172.16.50.175 -P 3306 -D doris_olap-e"delete from user_tag3_event_portrait where date < DATE_SUB(CURDATE(), INTERVAL 60 day) and substr(md5(cl_id), -1, 1) IN ('3', '4', '5')"
mysql -ust_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 60 day) and substr(md5(cl_id), -1, 1) IN ('6', '7', '8')"
mysql -udoris -po5gbA27hXHHm-h 172.16.50.175 -P 3306 -D doris_olap-e"delete from user_tag3_event_portrait where date < DATE_SUB(CURDATE(), INTERVAL 60 day) and substr(md5(cl_id), -1, 1) IN ('6', '7', '8')"
mysql -ust_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 60 day) and substr(md5(cl_id), -1, 1) IN ('a', 'b', 'c')"
mysql -udoris -po5gbA27hXHHm-h 172.16.50.175 -P 3306 -D doris_olap-e"delete from user_tag3_event_portrait where date < DATE_SUB(CURDATE(), INTERVAL 60 day) and substr(md5(cl_id), -1, 1) IN ('a', 'b', 'c')"
mysql -ust_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 60 day)"
mysql -udoris -po5gbA27hXHHm-h 172.16.50.175 -P 3306 -D doris_olap-e"delete from user_tag3_event_portrait where date < DATE_SUB(CURDATE(), INTERVAL 60 day)"