0
나는이 지느러미 일 두 날짜를 비교하려는하지만 오라클 함수 안에 넣고 매개 변수로 날짜를 통과 할 때이 오류 얻을 오라클 쿼리가 있습니다오라클 비교 두 날짜
ORA-01843: not a valid month
ORA-06512: at line 8
Process exited.
이 제 기능을 :
Create or Replace
FUNCTION GET_MAX_VALUE
(
PLAN_DATE IN DATE
, LOC IN NUMBER
, RES IN NUMBER
, TIS IN NUMBER
) RETURN NUMBER AS
units number;
return_val number;
BEGIN
select ts.booked_units into units from tsm_transaction_tbl ts
where ts.location_id=loc and ts.resource_id=res and ts.ts_id=tis and ts.trans_date=to_date(plan_date,'mm/dd/yyyy');
RETURN units;
END GET_MAX_VALUE;