myMySQL数据库当前时间怎么表示 MySQL数据库使用教程

凤凰 2021-1-19 119 1/19

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

myMySQL数据库当前时间怎么表示 MySQL数据库使用教程

表示mysql当前时间的方法:

1、current_timestamp

myMySQL数据库当前时间怎么表示 MySQL数据库使用教程

2、current_time

myMySQL数据库当前时间怎么表示 MySQL数据库使用教程

3、current_data

myMySQL数据库当前时间怎么表示 MySQL数据库使用教程

4、now()

myMySQL数据库当前时间怎么表示 MySQL数据库使用教程

5、curdate()

myMySQL数据库当前时间怎么表示 MySQL数据库使用教程

6、curtime()

myMySQL数据库当前时间怎么表示 MySQL数据库使用教程

将当前时间插入数据库

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

相关免费学习推荐:mysql视频教程

以上就是mysql当前时间怎么表示的详细内容,更多请关注本站其它相关文章!

- THE END -

凤凰

1月19日09:39

最后修改:2021年1月19日
0

非特殊说明,本博所有文章均为博主原创。