View previous topic :: View next topic |
Author |
Message |
lacoe1 Beginner
Joined: 24 Feb 2005 Posts: 33 Topics: 17
|
Posted: Wed Dec 23, 2009 6:03 pm Post subject: Fetch keeps returning the same record |
|
|
Did anyone face the same problem I am having. Cursor FETCH keeps returning the same record again and again. If I use SPUFI it returns 19 records, but in the Application program it does not work. The application is coded as below.
OPEN
FETCH and process in loop
CLOSE |
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Wed Dec 23, 2009 6:57 pm Post subject: |
|
|
1. FETCH returns rows not records.
2. what does your DECLARE Cursor look like?
3. what does your FETCH look like?
4. what code are you executing that tells you that your FETCH is returning the same row, because it will not. Are you checking your SQL CODE after each FETCH. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
 |
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Wed Dec 23, 2009 7:22 pm Post subject: |
|
|
I think you need to show what happens here. Show ALL relevant code, and please use BBCode. _________________ ....Terry |
|
Back to top |
|
 |
|
|