PLS-00394: Wrong number of values in the INTO list of a fetch statement

后端 未结 3 1862
感动是毒
感动是毒 2021-01-28 11:28

This is my attempt in creating a cursor in a stored procedure

   --Second Stored Procedure--
 CREATE OR REPLACE PROCEDURE sp_GetDiscountedRate (DiscountCode IN           


        
3条回答
  •  臣服心动
    2021-01-28 12:29

    You go through all the trouble of calculating "REVISED_RESERVATION_COST", and then you don't read it from the cursor.

    No wonder Oracle is complaining. You need a variable for this column as well.

    I would also advise you to learn to use modern, proper, explicit JOIN syntax.

提交回复
热议问题