select id, phone,time,year(time),month(time), DAY(time),TIME(time) from user where phone='xxxxxx'  #分别取年、月、日、时间
select id, phone,time from user where phone='xxxxxx'                        #
select id, phone,time,year(time) from user where phone='xxxxxx'                       #分别取年
select id, phone,time,month(time) from user where phone='xxxxxx'                    #分别取月
select id, phone,time,DAY(time) from user where phone='xxxxxx'                       #分别取日
select id, phone,time,TIME(time) from user where phone='xxxxxx'                      #分别取时间

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-11-29
  • 2021-12-23
  • 2021-09-21
  • 2021-09-05
猜你喜欢
  • 2022-01-11
  • 2021-12-29
  • 2021-04-15
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案