View previous topic :: View next topic |
Author |
Message |
Rajkannan Beginner
Joined: 02 Jun 2004 Posts: 64 Topics: 31
|
Posted: Wed Jun 02, 2004 10:08 am Post subject: DB2 - Query |
|
|
I am facing problem in reteriving data.
The scenario is I need to retrieve first 5 rows of a field(column) and concatenate them into a single column and then insert that single column.
Could you please tell me how can I retrieve 5 rows of a coulmn without using a cursor
Thanks in advance |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Jun 02, 2004 10:13 am Post subject: |
|
|
Rajkannan,
None of the programming languages on the mainframe support multiple values for a host variable. How is the column defined? Is it a numeric field or a character field?
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
vini Intermediate
Joined: 12 Jan 2004 Posts: 240 Topics: 48 Location: Maryland
|
Posted: Wed Jun 02, 2004 12:29 pm Post subject: |
|
|
Quote: |
Could you please tell me how can I retrieve 5 rows of a coulmn without using a cursor
|
If you dont want to use a Cursor , you can execute your Singleton Select 5 times to retrieve the 5 Rows. |
|
Back to top |
|
|
|
|