I have a simple mysql table called messages with the following fields:
- ID(int)
- MESSAGE(varchar)
- CREATE_DATE(timestamp)
I simply want to make a query that returns all records where CREATE_DATE is between 11pm yesterday and 11pm today.
When saying yesterday and today I mean by getting the current date from mysql, not hardcoding it in.
1 Answer