Home  >  Article  >  Database  >  How to get the current time in mysql

How to get the current time in mysql

醉折花枝作酒筹
醉折花枝作酒筹forward
2021-05-19 09:47:233422browse

This article will introduce to you how to get the current time in mysql. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

How to get the current time in mysql

1. current_timestamp

##2. current_time

3.current_data

4. now()

##5. curdate()

6.curtime()

Insert the current time into the database

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

Related recommendations: "

mysql tutorial

The above is the detailed content of How to get the current time in mysql. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete