Skip to content

Instantly share code, notes, and snippets.

@fankay
Created July 28, 2012 14:23
Show Gist options
  • Save fankay/3193598 to your computer and use it in GitHub Desktop.
Save fankay/3193598 to your computer and use it in GitHub Desktop.
MySQL日期格式化函数:获取月份和天数
SELECT brithday FROM t_customer
WHERE
DATE_FORMAT(brithday,'%m-%d') >= '08-07' AND DATE_FORMAT(brithday,'%m-%d') <= '09-29'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment