我想從日期時間選擇行,直到將來7天,我該怎麼做? 很多閱讀關於MySQL的日期功能,但不能弄明白,這是MySQL的代碼:在mysql中顯示記錄從現在()到未來7天
SELECT id, date_format(datum, '%d/%m') AS date,
date_format(datum, '%H:%i') AS time, date
FROM wedstrijden
WHERE date >= now()
ORDER BY datum asc
我必須做的東西:
date >= now() till 7 days further
http://stackoverflow.com/questions/2684520/mysql-date-add-usage-5-day-interval – 2011-01-26 20:27:38