0

I am trying to learn pl/sql.I created a procedure in oracle.Procedure gets input like that 3,4 but when I execute my procedure I get invalid number error.

My procedure is :

 PROCEDURE Student(
  p_types             IN  VARCHAR2,
  p_istatus           OUT      INTEGER
 )
 IS     
 v_value VARCHAR2(2000);

 BEGIN   
 dbms_output.put_line (p_types);  --It prints correctly (3,4)
 SELECT discount_id into v_value FROM Student where type_id in (p_types);
END Student;

My error is : Invalid Number

Do you have any idea?

tom
  • 215
  • 3
  • 11

0 Answers0