Reputation: 4336
Is it possible to SELECT
all rows from just today using DATE('today')
and then grab rows based on a specified hour?
I'm assuming it'd be something like so? (I know it's not the correct syntax)
SELECT
*
FROM
`table`
WHERE
DATE(`datetime`) = DATE(`today`)
AND
HOUR(`datetime`) = '23'
Bare in the mind the datetime
column is in datetime
format
Upvotes: 0
Views: 23