第1个回答 2011-03-30
SQL: select to_char(时间,'d'),时间 from table_name where to_char(时间,'d') not in ('2','3','4','5','6')
and 时间 between 2011-3-18 and 2011-3-30
解释
----not in ('2','3','4','5','6')中,1--周日,2--周一,3--周二,4--周三。。。7--周六
第2个回答 2011-03-30
select * from userinfo p where P.IDATE BETWEEN TO_DATE('2011-03-18','YYYY-MM-DD HH24')
AND TO_DATE('2011-03-30','YYYY-MM-DD HH24')