Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Not Getting The Error..
DEAR ALL,
--PACKAGE DETAILS------------------------SQL> CREATE OR REPLACE PACKAGE PKG_CATEGORY 2 IS
3 FROM_PROC BOOLEAN := FALSE; 4 NUMBER_OF_BLOG NUMBER(10,0) := 0;5 END;
Package created.
--PROCEDURE DETAILS
SQL> CREATE OR REPLACE PROCEDURE PROC_CATEGORY_TRANS_DATA_DELETE(B_ID
NUMBER,C_ID NUMBER)
2 AS
3 BEGIN
4 DECLARE
5 TOTAL_COUNT NUMBER(10,0); 6 BEGIN 7 SELECT COUNT(*) INTO TOTAL_COUNT FROM CATEGORY_TRANS WHERE BLOG_ID = B_ID AND CATEGORY_ID = C_ID; 8 IF (TOTAL_COUNT = 1) THEN 9 RAISE_APPLICATION_ERROR(-20001,'SINGLE RECORD FOUND'); 10 ELSIF 11 PKG_CATEGORY.FROM_PROC := TRUE; 12 PKG_CATEGORY.NUMBER_OF_BLOG := TOTAL_COUNT; 13 DELETE FROM CATEGORY_TRANS WHERE BLOG_ID = B_ID AND CATEGORY_ID = C_ID; 14 END IF; 15 END;
Warning: Procedure created with compilation errors.
SQL> SHOW ERRORS
Errors for PROCEDURE PROC_CATEGORY_TRANS_DATA_DELETE:
/c clsLINE/COL ERROR
following:
. ( * @ % & = - + < / > at in mod not rem then
<an exponent (**)> <> or != or ~= >= <= <> and or like between is null is not || is dangling The symbol "then was inserted before "=" to continue. ================