Skip to content

Instantly share code, notes, and snippets.

@dcorking
Created May 28, 2021 07:17
Show Gist options
  • Save dcorking/d55c2b7f18bbbec799bc894577b2d626 to your computer and use it in GitHub Desktop.
Save dcorking/d55c2b7f18bbbec799bc894577b2d626 to your computer and use it in GitHub Desktop.
In MySQL: a task is to be done every 12 months. Is it due?
SELECT DATE_ADD('2020-05-18', INTERVAL 12 MONTH) > NOW()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment