Database Errors Question:

How to resolve the sqlcode -501 error in db2?


This is due to the cursor declaration in which the application program has attempted to fetch some data's into a cursor that was neither declared nor opened. So, Always follow DECLARE,OPEN,FETCH,CLOSE while working with cursors.

Previous QuestionNext Question
When e open the data base the data base gives error as initializing or terminating how we log into data base?Display details of employees who are senior to there own manager?