1、返回日期为星期几

(1)显示当前日期是星期几

select to_char(SYSDATE,'DY') from dual;

(2)查看指定日期为星期几

select to_char(to_date('2013-01-04','yyyy-MM-dd'),'DY') from dual;

 

2、返回日期为当年的第几周

select to_char(sysdate,'FMWW') from dual;

 

 

相关文章:

  • 2021-06-26
  • 2022-01-19
  • 2022-02-02
  • 2022-12-23
  • 2021-11-20
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-08
  • 2021-07-18
  • 2022-12-23
相关资源
相似解决方案