Mysql – How to selecting data where the date is with the next month or later

date formatMySQL

I want to display all data where the the expiry date is within next month or later, here is my code:

<cfquery name="ExpiryDate"> 
        SELECT * 
        FROM Date
        WHERE Expiry >= 

</cfquery>

Best Answer

This is what you want:

    SELECT * 
    FROM Date
    WHERE Expiry >= DATE_ADD(curdate(), INTERVAL 1 MONTH);

MySQL date and time functions are documented here.