首頁  >  文章  >  資料庫  >  mysql當前時間怎麼表示

mysql當前時間怎麼表示

coldplay.xixi
coldplay.xixi原創
2020-11-02 15:58:328663瀏覽

表示mysql目前時間的方法:1、使用【current_timestamp】方法;2、使用【current_time】方法;3、使用【current_data】方法;4、使用【now()】方法;5、使用【curdate()】方法。

mysql當前時間怎麼表示

表示mysql目前時間的方法:

1、current_timestamp

mysql當前時間怎麼表示

2、current_time

mysql當前時間怎麼表示

3、current_data

mysql當前時間怎麼表示

4、now()

mysql當前時間怎麼表示

#5、curdate()

mysql當前時間怎麼表示

#6、curtime()

mysql當前時間怎麼表示

# #將目前時間插入資料庫

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

相關免費學習推薦:

mysql影片教學

以上是mysql當前時間怎麼表示的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn