Guest_imported
New member
- Jan 1, 1970
- 0
I am having some difficulties getting a package to compile and I have to tell you that I am a complete noob to Oracle PL/SQL. I'm buying a book ASAP... any suggestions on that?
Here's the bastard code: Oracle 8i
CREATE OR REPLACE PACKAGE BODY FNDD_DBO.UPDATE_STATE_CODE
IS
PROCEDURE UPDATE_SAP_VW(lv_go IN NUMBER)
AS
CURSOR cur_sapvw IS
SELECT * FROM FNDD_DBO.VWSAP_TRANSFORM FOR UPDATE;
lv_sap_allowed number;
BEGIN
FOR cur_sapvw_rec IN cur_sapvw LOOP
SELECT FNDD_DBO.SAP_CTRY_STATE_XREF.STATE_ALLOWED
INTO lv_sap_allowed
FROM FNDD_DBO.SAP_CTRY_STATE_XREF
WHERE FNDD_DBO.SAP_CTRY_STATE_XREF.CTRY_CODE =
cur_sapvw_rec.country_cd;
IF lv_sap_allowed =< 0 THEN
UPDATE VWSAP_TRANSFORM SET VWSAP_TRANSFORM.COUNTRY_CD := NULL
WHERE CURRENT OF cur_sapvw;
END IF;
COMMIT;
END LOOP;
END;
END UPDATE_SAP_VW;
END;
Get These errors:
Encountered Symbol "<" when expecting one of the following....
Encountered symbol "=" when expecting one of the following...
Encountered the symbol "END"
Any help would be appreciated.
Here's the bastard code: Oracle 8i
CREATE OR REPLACE PACKAGE BODY FNDD_DBO.UPDATE_STATE_CODE
IS
PROCEDURE UPDATE_SAP_VW(lv_go IN NUMBER)
AS
CURSOR cur_sapvw IS
SELECT * FROM FNDD_DBO.VWSAP_TRANSFORM FOR UPDATE;
lv_sap_allowed number;
BEGIN
FOR cur_sapvw_rec IN cur_sapvw LOOP
SELECT FNDD_DBO.SAP_CTRY_STATE_XREF.STATE_ALLOWED
INTO lv_sap_allowed
FROM FNDD_DBO.SAP_CTRY_STATE_XREF
WHERE FNDD_DBO.SAP_CTRY_STATE_XREF.CTRY_CODE =
cur_sapvw_rec.country_cd;
IF lv_sap_allowed =< 0 THEN
UPDATE VWSAP_TRANSFORM SET VWSAP_TRANSFORM.COUNTRY_CD := NULL
WHERE CURRENT OF cur_sapvw;
END IF;
COMMIT;
END LOOP;
END;
END UPDATE_SAP_VW;
END;
Get These errors:
Encountered Symbol "<" when expecting one of the following....
Encountered symbol "=" when expecting one of the following...
Encountered the symbol "END"
Any help would be appreciated.