当前位置:操作系统 > Unix/Linux >>

获取当前日期对应是星期几


获取当前日期对应是星期几
 
Select TO_CHAR (t.d, 'YYYY-MM-DD') as sdate,TO_CHAR (t.d, 'day') as Weeks
 
  FROM (Select (TRUNC (sysdate, 'WW') + ROWNUM -1) d
 
          FROM dual
 
         Where ROWNUM < 7) t
 
Where TO_CHAR (t.d, 'WW') = TO_CHAR (sysdate, 'WW') order by sdate
  www.zzzyk.com  
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,