1 获得当前日期+时间(date + time)函数:now()

 

 

2 获得当前日期+时间(date + time)函数:sysdate()

sysdate() 日期时间函数跟 now() 类似,不同之处在于:now() 在执行开始时值就得到了, sysdate() 在函数执行时动态得到值。

 

 

3 获得当前日期(date)函数:curdate()

等同于:current_date(),current_date

 

 

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

等同于:current_time(),current_time

 

 

5 获得当前 UTC 日期时间函数:utc_date(), utc_time(), utc_timestamp()

因为我国位于东八时区,所以本地时间 = UTC 时间 + 8 小时。

 

相关文章:

  • 2022-12-23
  • 2021-07-16
  • 2021-12-01
  • 2022-02-02
  • 2022-12-23
  • 2022-02-16
  • 2021-12-19
  • 2021-12-18
猜你喜欢
  • 2021-08-01
  • 2021-09-04
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案