2011-11-14 1 views

答えて

0
select * 
from tbl_users user 
inner join tbl_purchase_plan plan on (user.cc_plan_option_id=plan.id) 
where DATEDIFF(CURDATE(),DATE_ADD(user.created, INTERVAL plan.plan_duration MONTH)) = 5 
and user.status=1 
関連する問題