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 60 day))"
# log 90days
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 -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))"
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 90 day))"
# portrait stats 30days
# 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 60 day) and substr(md5(cl_id), -1, 1) IN ('0', '1', '2')"