@Query("select a.id,a.title,a.author,a.pulblicTime from Articles a")
Page<Articles> getAriticleList(Pageable pageable);
我尝试用
convert(char(20),a.pulblicTime,109)
或者
data_format(a.pulblicTime,"%Y-%M")
输出到前端还是长串的数字啊。
到底该怎么处理才是正常的字符串时间呢??
@Query("select a.id,a.title,a.author,a.pulblicTime from Articles a")
Page<Articles> getAriticleList(Pageable pageable);
我尝试用
convert(char(20),a.pulblicTime,109)
或者
data_format(a.pulblicTime,"%Y-%M")
输出到前端还是长串的数字啊。
到底该怎么处理才是正常的字符串时间呢??
4 回答1.3k 阅读✓ 已解决
8 回答1.2k 阅读
3 回答1k 阅读✓ 已解决
2 回答1.7k 阅读
2 回答1.3k 阅读
1 回答859 阅读✓ 已解决
1 回答653 阅读✓ 已解决
select from_unixtime(int_time_stamp, '%y-%m-%d') from test;