Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Fetch the records from more than one table using cursors

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
kathir

New User


Joined: 03 May 2005
Posts: 4

PostPosted: Fri May 06, 2005 9:22 pm    Post subject: Fetch the records from more than one table using cursors
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
References
avalanches

New User


Joined: 10 May 2005
Posts: 28

PostPosted: Tue May 10, 2005 3:10 pm    Post subject: Re: Fetch the records from more than one table using cursors
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: 200
Location: Keane India Ltd., Hyderabad

PostPosted: Sun May 15, 2005 12:39 pm    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1