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

Difference in basic SELECT and cursor select


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
meenal_mainframes
Warnings : 1

New User


Joined: 07 Jul 2006
Posts: 9
Location: USA

PostPosted: Thu Dec 28, 2006 5:21 pm
Reply with quote

can someone tell me difference b/w basic select and cursor query.
other than cursor fetches multiple rows
Back to top
View user's profile Send private message
ravi17s
Warnings : 1

New User


Joined: 15 Aug 2003
Posts: 57

PostPosted: Thu Dec 28, 2006 6:36 pm
Reply with quote

Cursors can be used onlyin an Embedded SQL
Cursor can be declared with HOLD ,FOR UPDATE etc..
Different Types of Cursor' are:
SENSITIVE STATIC SCROLL,INSENSITIVE
SCROLL

SELECT returs SQLCODE=-811 if multiple row exist.
The main reason for the oigin of cursor is to select Multiple record.

Thx,
Ravi
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Timestamp difference and its average ... DB2 11
No new posts SELECT from data change table DB2 5
No new posts Select two different counts from SQL... DB2 6
No new posts Difference when accessing dataset in ... JCL & VSAM 7
Search our Forums:

Back to Top