select * from prj_record where to_char(b_time,D) = '星期五';注:select to_char(sysdate,'yyyy') from dual; --年
select to_char(sysdate,'Q' from dual;     --季
select to_char(sysdate,'mm') from dual;   --月
select to_char(sysdate,'dd') from dual;   --日
ddd 年中的第几天
WW 年中的第几个星期
W 该月中第几个星期
D 周中的星期几
hh 小时(12)
hh24 小时(24)
Mi 分
ss 秒

解决方案 »

  1.   

    不好意思,少了个''号
    select * from prj_record where to_char(b_time,'D') = '星期五';
      

  2.   

    也可以这样:
    select * from prj_record where to_char(b_time,'D') = '5';看你的具体日期设置情况了。
      

  3.   


    select * from prj_record where to_char(b_time,'DAY','NLS_DATE_LANGUAGE=''SIMPLIFIED CHINESE''') = '星期五';