1,获取当前日期函数select curdate() current_date(),current_date

2,获取当前日期+时间   select now()/sysdate()

3,获得当前时间(time)函数:curtime()


其中,下面的两个时间函数等同于 curtime():current_time(),current_time


4. 获得当前 UTC 日期时间函数:utc_date(), utc_time(), utc_timestamp()
因为我国位于东八时区,所以本地时间 = UTC 时间 + 8 小时。UTC 时间在业务涉及多个国家和地区的时候,非常有用。
5日期相减select datediff('2013-04-28', '2013-04-08')