mysql 获取当前时间戳
mysql 获取当前时间为select now()
运行结果2012-09-05 17:24:15
mysql 获取当前时间戳为select unix_timestamp(now())
运行结果:
unix_timestamp(now())
1346836984
运行结果2012-09-05 17:24:15
mysql 获取当前时间戳为select unix_timestamp(now())
运行结果:
unix_timestamp(now())
1346836984
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);
相关推荐
CoderToy 2020-11-16
emmm00 2020-11-17
王艺强 2020-11-17
ribavnu 2020-11-16
bianruifeng 2020-11-16
wangshuangbao 2020-11-13
苏康申 2020-11-13
vivenwan 2020-11-13
moyekongling 2020-11-13
云中舞步 2020-11-12
要啥自行车一把梭 2020-11-12
aydh 2020-11-12
kuwoyinlehe 2020-11-12
minerk 2020-11-12
vitasfly 2020-11-12
jazywoo在路上 2020-11-11
敏敏张 2020-11-11
世樹 2020-11-11