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