且看如下:

select date_format(create_time,'%Y.%m.%d'),create_time from vs_article where article_id='20';

 

结果:

+-------------------------------------+---------------------+
| date_format(create_time,'%Y-%m.%d') | create_time         |
+-------------------------------------+---------------------+
| 2014-12.17                          | 2014-12-17 11:44:03 |
+-------------------------------------+---------------------+
1 row in set

 

相关文章:

  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2021-11-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2021-11-28
  • 2021-04-24
  • 2022-01-20
  • 2022-02-04
相关资源
相似解决方案