批量更改int类型的timestamp字段to datetime

批量更改int类型的timestamp字段to datetime

1.创建datetime字段created_at

2.update 字段

UPDATE table set created_at = from_unixtime(reg_time, "%Y-%m-%d %H:%i:%s")
原文地址:https://www.cnblogs.com/fenle/p/5650678.html