select to_char(sysdate,'D') from dual; 這周的第幾天;Day of week (1–7) 1,2,3,4,5,6,7--注意:每星期的第1天是」星期日「date
select to_char(sysdate,'DD') from dual;這個月的第幾天;Day of month (1–31) 1,2,3,4…31select
select to_char(sysdate,'DDD') from dual;今年的第幾天;Day of year (1–366) 1,2,3,4…366