MySQL Forums
Forum List  »  Stored Procedures

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

Basically it's calculating correctly for all the records. But loop is not terminating for the last record and running infinite times.

select * from student_mark

Records in student_mark table:

# Stu_Name, Course_Name, Mark_Secured, Result, Remarks
'Bhabesh Sahoo', 'Mathematics', '101', 'PASS', 'Grace Applied'
'Jitendra Sahoo', 'Physics', '72', 'PASS', 'Grace Applied'
'Romakanta Patro', 'Chemistry', '66', 'PASS', 'Grace Applied'
'Tarakanath Shimadri', 'Botany', '30', 'PASS', 'Grace Applied'
'Sudhansu Parida', 'Zoology', '97.5', 'PASS', 'Grace Applied'
'Amit Agarawal', 'Zoology', '12.5', 'FAIL', 'Grace Applied'
'Amit Agarawal', 'Zoology', '12.5', 'FAIL', 'Grace Applied'
'Amit Agarawal', 'Zoology', '12.5', 'FAIL', 'Grace Applied'
'Amit Agarawal', 'Zoology', '12.5', 'FAIL', 'Grace Applied'
'Amit Agarawal', 'Zoology', '12.5', 'FAIL', 'Grace Applied'
'Amit Agarawal', 'Zoology', '12.5', 'FAIL', 'Grace Applied'
'Amit Agarawal', 'Zoology', '12.5', 'FAIL', 'Grace Applied'
'Amit Agarawal', 'Zoology', '12.5', 'FAIL', 'Grace Applied'
'Amit Agarawal', 'Zoology', '12.5', 'FAIL', 'Grace Applied'

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: stored procedure executing for infinite time
887
December 09, 2015 03:57AM


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.