Home > database > Stored procedure execution error
Stored procedure execution error
Time:10-03
I stored procedure is a small white, first-time, wrote a short stored procedure, when found to perform an error, the great god help to look at, exactly what is going wrong,
create or replace PROCEDURE XX_P_ORL_ATT20_UPDATE (OR_GID IN VARCHAR2) AS CURSOR ORL_GID_CUR IS The SELECT ORL. ORDER_RELEASE_LINE_GID The FROM ORDER_RELEASE_LINE ORL WHERE ORL. ORDER_RELEASE_GID=OR_GID ORL_GID_ROW ORL_GID_CUR % ROWTYPE; The BEGIN FOR ORL_GID_ROW ORL_GID_CUR IN LOOP The UPDATE ORDER_RELEASE_LINE ORL The SET ORL. ATTRIBUTE20= (the SELECT XORLE EXTEND_TEXT1 The FROM XX_ORDER_RELEASE_LINE_EXTEND XORLE WHERE XORLE. ORDER_RELEASE_LINE_GID=ORL_GID_ROW. ORDER_RELEASE_LINE_GID ) WHERE ORL. ORDER_RELEASE_LINE_GID=ORL_GID_ROW. ORDER_RELEASE_LINE_GID END LOOP; COMMIT; END;
CodePudding user response:
that execution error when
Specific error coming, may be a syntax error, may also be a semantic error;
CodePudding user response:
- ORL_GID_ROW ORL_GID_CUR % ROWTYPE; This line not to, The BEGIN FOR ORL_GID_ROW ORL_GID_CUR - here IN used directly is ok, don't have to define