一条SQL查询某张表的时间 并转换 格式后 保存到另外一张表里面
insert into tt (gettime) select FROM_UNIXTIME(`gettime`,%Y%m%d') from wp_courage_detail
insert into tt (gettime) select FROM_UNIXTIME(`gettime`,%Y%m%d') from wp_courage_detail
本文介绍了一种使用SQL将时间从一张表中读取并转换为特定格式后,再插入到另一张表的方法。示例代码展示了如何利用FROM_UNIXTIME函数进行时间格式转换。
1万+

被折叠的 条评论
为什么被折叠?