Oacle计算是否是周六周天

  SELECT NEXT_DAY(TRUNC(to_date('2012-08-19','YYYY-MM-DD')), 2) - 7 FROM DUAL;
  SELECT NEXT_DAY(TRUNC(to_date('2012-08-19','YYYY-MM-DD')), 2) - 3 FROM DUAL;

你可能感兴趣的:(Date)