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);
以上借鉴于:https://blog.csdn.net/u012326462/article/details/82081756
详情请参考以上链接

浙公网安备 33010602011771号