Skip to content

Instantly share code, notes, and snippets.

@Mahno74
Created December 23, 2022 04:48
Show Gist options
  • Save Mahno74/f42b028874f69021d27da3abff64415b to your computer and use it in GitHub Desktop.
Save Mahno74/f42b028874f69021d27da3abff64415b to your computer and use it in GitHub Desktop.
SQL запрос по диапазону даты (декабрь - январь)
SELECT * FROM stuff WHERE EXTRACT(MONTH FROM `birthdate`) = '12' OR EXTRACT(MONTH FROM `birthdate`) = '1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment