Database Errors Question:
Download Questions PDF

How to resolve the sqlcode -501 error in db2?

Answer:

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.

Download Database Errors Interview Questions And Answers PDF

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?