表示mysql當(dāng)前時間的方法:1、使用【current_timestamp】方法;2、使用【current_time】方法;3、使用【current_data】方法;4、使用【now()】方法;5、使用【curdate()】方法。
表示mysql當(dāng)前時間的方法:
1、current_timestamp
2、current_time
3、current_data
4、now()
5、curdate()
6、curtime()
將當(dāng)前時間插入數(shù)據(jù)庫
insert?into?t_login(user_id,login_time)?values?(1,CURRENT_TIMESTAMP);
相關(guān)免費學(xué)習(xí)推薦:mysql視頻教程
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載。
THE END
喜歡就支持一下吧
相關(guān)推薦