批量更改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")

 

posted on 2016-07-07 16:40  jzfan  阅读(370)  评论(0编辑  收藏  举报