数据库插入毫秒字段

1、创建add_time为bigint。

INSERT into user (add_time) VALUES (CONCAT(UNIX_TIMESTAMP(NOW()), RIGHT(NOW(4), 4)));

猜你喜欢

转载自blog.csdn.net/tuantuanyua/article/details/81303165