שמע אני חייב לציין שכנראה עלית על משהו....
אז שחקתי עם זה קצת...
והגעתי לדבר זה ...
select * from articles as s where (date(s.sendtime) between date (now()) and date(now())-7)
וגם לדבר הזה:
select * from articles as s where (s.sendtime between date (CURRENT_TIMESTAMP()) and date(CURRENT_TIMESTAMP())-7)
וגם לדבר הזה:
select * from articles as s where s.sendtime between CURRENT_TIMESTAMP() and CURRENT_TIMESTAMP()-7
כל האופציות הללו לא מחזירות שגיאה שזה כבר מנחם אבל גם לא מחזירות רשומות למרות שיש רשומות בתאריכים הללו...
__________________
 - חייך הכל לטובה .
|