728x90
오늘 Data 가져오는 방법
SELECT regi_date, reg_member_name,reg_member_phone FROM bugo_member 
WHERE regi_date BETWEEN DATE_ADD(NOW(),INTERVAL -1 DAY ) AND NOW();

일주일 Data 가져오는 방법
SELECT regi_date, reg_member_name,reg_member_phone FROM bugo_member 
WHERE regi_date BETWEEN BETWEEN DATE_ADD(NOW(),INTERVAL -1 WEEK ) AND NOW();


한달 Data 가져오는 방법
SELECT regi_date, reg_member_name,reg_member_phone FROM bugo_member 
WHERE regi_date BETWEEN DATE_COLUMN BETWEEN DATE_ADD(NOW(),INTERVAL -1 MONTH ) AND NOW();
728x90

+ Recent posts