L
L
luckyjenro02022-04-06 00:29:53
MySQL
luckyjenro0, 2022-04-06 00:29:53

How to display data from mysql for today and with time condition?

How can I display data for today from 18:30 to 19:00? That is, data for today and for a specific period of time (2 conditions).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2022-04-06
@luckyjenro0

BETWEEN '2022-04-06 18:30' AND '2022-04-06 19:00'

BETWEEN CONCAT(CURDATE(), ' 18:30') AND CONCAT(CURDATE(), ' 19:00')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question