1
undefine dates
declare
v_dateInput VARCHAR(10);
v_dates DATE;
begin
v_dateInput := &&dates;
v_dates := to_date(v_dateInput,'dd-mm-yyyy');
DBMS_OUTPUT.put_line(v_dates);
end;
不知道爲什麼每當我運行此代碼時,例如輸入03-03-1990,就會顯示此錯誤。to_date函數pl/sql
Error report:
ORA-01847: day of month must be between 1 and last day of month
ORA-06512: at line 6
01847. 00000 - "day of month must be between 1 and last day of month"
*Cause:
*Action:
啊,我的一個愚蠢的錯誤,謝謝你的幫助 – user297285 2010-03-25 12:14:17