首頁  >  文章  >  資料庫  >  mysql如何取得目前時間

mysql如何取得目前時間

醉折花枝作酒筹
醉折花枝作酒筹轉載
2021-05-19 09:47:233385瀏覽

這篇文章跟大家介紹一下mysql取得目前時間的方法。有一定的參考價值,有需要的朋友可以參考一下,希望對大家有幫助。

mysql如何取得目前時間

1. current_timestamp

#2. current_time

3.current_data

4. now()

5. curdate()

#6.curtime()

將目前時間插入資料庫

insert into t_login(user_id,login_time) values (1,CURRENT_TIMESTAMP);

相關推薦:《mysql教學

以上是mysql如何取得目前時間的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文轉載於:csdn.net。如有侵權,請聯絡admin@php.cn刪除