Skip to content

All topics  /  MySQL

How To Get Current Month Records in MySQL?

MySQL ·

Hi Friends,

I am going to explain you example of how to get current month records in MySQL? , you will learn find current month records in SQL query. you will learn MySQL get current month records from example. I would like to share with you MySQL get current month records from timestamp.

Here, i will give you simple example of MySQL query to get current month records. i will give you how to find MySQL query to get current month data.

Let's see bellow example:

Table: users


Solution SQL Query:

SELECT 
    * 
FROM `users` 
WHERE MONTH(created_at) = MONTH(now())
   AND YEAR(created_at) = YEAR(now())

Output:

I hope it will help you...