P
P
Pantene7422017-02-16 17:27:22
MySQL
Pantene742, 2017-02-16 17:27:22

How to formulate a mysql query so that it returns records with a date for the last 30 days there is a date(2014-25-25 y/m/d) format field?

You will also need the previous month.
Never formed complex requests. Explain their syntax.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2017-02-16
@Pantene742

And what is the difficulty here?
... WHERE `date` > CURDATE() - INTERVAL 30 DAYS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question