IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Select more than one row from a table using select query


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
murali_soorya
Warnings : 1

New User


Joined: 08 Mar 2005
Posts: 1
Location: Chennai

PostPosted: Mon May 30, 2005 6:04 pm
Reply with quote

Dear Friends,
I have one doubt please rectify it,
In Oracle(Rdbms) it is possible to Select more than one row from a table using select query where as in DB2(Rdbms) it throws an error of -811 why?
Back to top
View user's profile Send private message
vasanthanc

New User


Joined: 01 Apr 2005
Posts: 58

PostPosted: Tue May 31, 2005 11:02 am
Reply with quote

You can select more than one row in db2 also. But from where u tried to execute the query? In cobol program, u need to user cursor to traverse through the rows. Explain your problem in detail
Back to top
View user's profile Send private message
jkbytes

Active User


Joined: 19 Feb 2005
Posts: 139
Location: South Africa

PostPosted: Tue May 31, 2005 12:03 pm
Reply with quote

Hi murali,

You can select more than one row in DB2 using SPUFI,
but from the -811 its sure you are trying to retreive more than one row using DB2 - cobol program.
You can acheive it by means of defining a cursor, opening it then fetching it and finally closng it.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts RC query -Time column CA Products 3
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top