我試圖保存一天,然後用它在if語句,但它不工作....TO_CHAR和IF stament在Oracle 11g中
它跳過如果所有
select TO_CHAR(sysdate, 'DAY') into v_today from dual ; // save the day to v_today
if v_today <> 'SUNDAY' or v_today <> 'SATURDAY'// check for the vlaue of v_today
then
DBMS_OUTPUT.PUT_LINE('the office is open') ;
else
DBMS_OUTPUT.PUT_LINE('the office is close of the weekend') ;
end if;
謝謝你現在工作 – 2013-04-10 00:50:15