标签: mysql responsys
我正在使用SQL设置细分,我需要捕获从现在起15天生日的联系人。
SELECT * FROM $A$ WHERE EXTRACT(month FROM BIRTHDATE) = EXTRACT(month FROM CURRENT_TIMESTAMP) AND EXTRACT(day FROM BIRTHDATE) = EXTRACT(day FROM CURRENT_TIMESTAMP - 15)