表示mysql當前時間的方法:1、使用【current_timestamp】方法;2、使用【current_time】方法;3、使用【current_data】方法;4、使用【now()】方法;5、使用【curdate()】方法。
表示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);
相關免費學習推薦:mysql視頻教程
? 版權聲明
文章版權歸作者所有,未經允許請勿轉載。
THE END
喜歡就支持一下吧
相關推薦