今天的学习内容:
mysql时间函数
from_unixtime //当前时间 yyyy-mm-dd hh-mm-ss
date //取日期
unix_timestamp //返回时间戳
year //取年份
month //取月份
day //取日期
curdate //当前年-月-日
curtime //当前时-分-秒
adddate(‘yyyy-mm-dd’,7) //当前日期加几天
datediff('2017-06-01','2017-05-01') //两个日期相差多少天
if
case when then else end