Jump to content

MONTH INTERVAL on mysql


fantic

Recommended Posts

SELECT blah FROM table WHERE SomeColumn BETWEEN something AND SomethingElse;

 

 

Depending on the format of your column, you will need to use the corresponding values there.

 

 

Example:

 

 

SELECT * FROM events WHERE event_date (BETWEEN DATE_ADD(NOW(), INTERVAL + 3 MONTHS) AND DATE_ADD(NOW(), INTERVAL + 4 MONTHS));

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.