Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> ERRor message
I am creating the below procedure below:
When I test it with this test I get the error message below. Can
someone tell me what I am doing wrong:
BEGIN
Add_grade_type(&grade_type_code', '&description');
END;
I get this error:
++++++++++++++++++++++++++++++++++++++++++++++++++++++ERROR at line 2:
CREATE OR REPLACE PROCEDURE Add_Grade_Type
(pi_grade_type_code IN GRADE_TYPE.grade_type_code%TYPE,
pi_gt_description IN GRADE_TYPE.description%TYPE,
o_return_code OUT INTEGER)
AS
v_gt_type_code GRADE_TYPE.grade_type_code%TYPE; v_gt_description GRADE_TYPE.description%TYPE; v_gt_dummy VARCHAR2(2);
INTO v_gt_dummy FROM GRADE_TYPE WHERE grade_type_code = v_gt_type_code; DBMS_OUTPUT.PUT_LINE('The GRADE TYPE code '||v_gt_type_code||
' IS already IN the DATABASE AND cannot be'||
' reinserted.');
INSERT INTO GRADE_TYPE (grade_type_code, description,created_by,created_date,modified_by,modified_date) VALUES(v_gt_type_code, v_gt_description, USER, SYSDATE, USER, SYSDATE);
Thank you Received on Sat Dec 08 2001 - 16:05:39 CST
![]() |
![]() |