To select entries less than 24 hours old in MySQL you can use the following snippet.
Sample MySQL
SELECT * FROM TABLENAME WHERE COLUMNNAME >= DATE_SUB(Now(),INTERVAL 24 HOUR)
All the Code Snippets and Samples you need
To select entries less than 24 hours old in MySQL you can use the following snippet.
SELECT * FROM TABLENAME WHERE COLUMNNAME >= DATE_SUB(Now(),INTERVAL 24 HOUR)
You must be logged in to post a comment.
RT @CodeSnippetsNET: How to select entries less than 24 hours old in #MySQL http://t.co/PKhwFjFPjq #php #html