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

Fetch the records from more than one table using cursors


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kathir

New User


Joined: 03 May 2005
Posts: 4

PostPosted: Fri May 06, 2005 9:22 pm
Reply with quote

Hi Guys,

Can we fetch the records from more than one table using cursor ?
Back to top
View user's profile Send private message
avalanches

New User


Joined: 10 May 2005
Posts: 28

PostPosted: Tue May 10, 2005 3:10 pm
Reply with quote

Hi,

A cursor is a temporary logical table. When it is declared, the logical table is created. So, the cursor can be declared for more than one tables.

Cheers.... icon_super.gif
Back to top
View user's profile Send private message
ovreddy

Active User


Joined: 06 Dec 2004
Posts: 211
Location: Keane Inc., Minneapolis USA.

PostPosted: Sun May 15, 2005 12:39 pm
Reply with quote

Hi Kathir,

Yes you can why not?

For example if you have a View joining two tables and have a cursor on it. Then why cursor for two tables is not possible. Its possible but some limitaions like updations are not allowed like views.

Thanks,
Reddy.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
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