I recorded data in field ‘date’ by mysql NOW() function. I want to SELECT data which recorded the last three days(today, yesterday and the day before yesterday),but no idea to do this.
SELECT * FROM tlb_students WHERE date ...?... ORDER BY date DESC LIMIT 20
1 Answer