MySQL Forums
Forum List  »  Stored Procedures

Re: stored procedure executing for infinite time
Posted by: amarendra sahoo
Date: December 09, 2015 07:08AM

Hi Peter,

Thanks for your reply.

I put the code like below. But it's showing a syntax error.

Could you please suggest where should I put this code.


IF IMark >= v_CPassmark THEN
SET Result = 'PASS';
SET Remark = 'Grace Applied';
INSERT INTO student_mark(Stu_Name, Course_Name,Mark_Secured,Result,Remarks) VALUES(SName, CName,IMark,Result,Remark);
ELSE
SET Result = 'FAIL';
SET Remark = 'Grace Applied';
INSERT INTO student_mark(Stu_Name, Course_Name,Mark_Secured,Result,Remarks) VALUES(SName, CName,IMark,Result,Remark);

END IF;

if v_finished then LEAVE
END if;

END LOOP ;

CLOSE student_cursor;
END

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: stored procedure executing for infinite time
819
December 09, 2015 07:08AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.