mysql如何获取当前时间
生活随笔
收集整理的這篇文章主要介紹了
mysql如何获取当前时间
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
獲得當(dāng)前日期+時間(date + time)函數(shù):
select now(); select current_timestamp(); select localtime(); select localtimestamp(); select sysdate();設(shè)置默認(rèn)當(dāng)前時間:
CURRENT_TIMESTAMP獲得當(dāng)前日期(date)函數(shù):
curdate() ?= ?current_date()獲得當(dāng)前時間(time)函數(shù):
curtime() ?= ?current_time()獲得當(dāng)前 UTC 日期時間函數(shù):
utc_date(), utc_time(), utc_timestamp()總結(jié)
以上是生活随笔為你收集整理的mysql如何获取当前时间的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ASP.NET下载网络图片
- 下一篇: mysql workbench画E-R图