1、date()

提取日期或日期时间表达式的日期部分

select date(create_time) from blog_article;

2、date_format()

select date_format(create_time, '%Y-%m') from blog_userinfo;

其它参考:

https://www.cnblogs.com/waterystone/p/5606196.html

相关文章:

  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2021-08-08
  • 2021-07-01
  • 2022-01-21
  • 2022-12-23
猜你喜欢
  • 2022-02-01
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2021-10-25
相关资源
相似解决方案