View previous topic :: View next topic
|
Author |
Message |
sakthivel_t100 Warnings : 1 New User
Joined: 03 Aug 2007 Posts: 10 Location: chennai
|
|
|
|
Hi All,
Can I use FETCH statements on SPUFI in DB2 ? If possible can you please give me Syntax of the FETCH statemnts ?
Thanks |
|
Back to top |
|
|
ashwinreddy
Active User
Joined: 16 Sep 2004 Posts: 106 Location: Hyderabad
|
|
|
|
Hi,
You can't do it man, why you need it all the data would be displayed in the output screen.
Cheers
Ashwin |
|
Back to top |
|
|
ashwinreddy
Active User
Joined: 16 Sep 2004 Posts: 106 Location: Hyderabad
|
|
|
|
Hi,
Do you mean the same questions or you have missed anything or was a typo mistake.
Please send us your extact question.
Cheers
Ashwin |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
sakthivel_t100 wrote: |
Hi All,
Can I use FETCH statements on SPUFI in DB2 ? If possible can you please give me Syntax of the FETCH statemnts ?
Thanks |
NO, for spufi you use SELECT, Fetch is only used with cursors. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
SPUFI can/will return multiple rows for your SELECT.
In a program, you use a cursor when your SELECT might return more than 1 row. |
|
Back to top |
|
|
|