The representation of the current time of mysql
What is the representation of the current time of mysql? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!
The method to represent the current time of mysql: 1, use the [current_timestamp] method; 2, use the [current_time] method; 3, use the [current_data] method; 4, use the [now ()] method; 5, use the [curdate ()] method.
The method to represent the current time of the 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, thank you for your reading! After reading the above, do you have a general understanding of the representation of the current time of mysql? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.