#空id另算行数,AND DATE(create_time) = CURDATE();
SELECT COUNT(*) FROM peo_pass_recode WHERE card_id IS NULL
#id不为空,身份证号号进出口双distinct
SELECT COUNT(*) FROM (SELECT DISTINCT card_id , cap_type FROM peo_pass_recode WHERE card_id IS NOT NULL)A
#空id另算行数,AND DATE(create_time) = CURDATE();
SELECT COUNT(*) FROM peo_pass_recode WHERE card_id IS NULL
#id不为空,身份证号号进出口双distinct
SELECT COUNT(*) FROM (SELECT DISTINCT card_id , cap_type FROM peo_pass_recode WHERE card_id IS NOT NULL)A