Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Difference between FOR FETCH ONLY, FOR READ ONLY

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
joshkahn

New User


Joined: 30 Dec 2005
Posts: 8

PostPosted: Thu Nov 15, 2007 2:08 am    Post subject: Difference between FOR FETCH ONLY, FOR READ ONLY
Reply with quote

What is the difference between FOR FETCH ONLY, FOR READ ONLY, WITH UR.
Back to top
View user's profile Send private message

joshkahn

New User


Joined: 30 Dec 2005
Posts: 8

PostPosted: Thu Nov 15, 2007 2:09 am    Post subject:
Reply with quote

iS THERE A SIMPLE WAY TO GET THE CURRENT WEEKS FRIDAY DATE?
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 276
Location: Bang,iflex

PostPosted: Thu Nov 15, 2007 11:07 am    Post subject:
Reply with quote

Hi joshkahn,


Quote:
iS THERE A SIMPLE WAY TO GET THE CURRENT WEEKS FRIDAY DATE?


Are you angry with forum,


Fetch only: is used to extract the records from the table.
Read only: means you read the records from the table, but not able to update the record.

UR: is un committed read, which is also called dirty read.

Regard's
Vasanth......... icon_smile.gif
Back to top
View user's profile Send private message
senthilssg

New User


Joined: 09 Dec 2005
Posts: 64
Location: USA

PostPosted: Thu Nov 15, 2007 1:36 pm    Post subject:
Reply with quote

Hi ,

FOR FETCH ONLY or FOR READ ONLY in the DECLARE CURSOR statement
clause is used to indicate that the cursor does not modify data .

Becuase of above defintion , the cursor will be defined as read-only cursor and block fetch is also ensured .

UR :

WITH UR clause can be used at end of SELECT query to avoid the un necessary locks on READ-only database .


Thanks and Regards
Senthil
Back to top
View user's profile Send private message
joshkahn

New User


Joined: 30 Dec 2005
Posts: 8

PostPosted: Thu Nov 15, 2007 7:19 pm    Post subject:
Reply with quote

I still don't understand the difference between FOR FETCH ONLY and FOR READ ONLY. Which is preferred and why?
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Nov 15, 2007 7:42 pm    Post subject:
Reply with quote

joshkahn wrote:
I still don't understand the difference between FOR FETCH ONLY and FOR READ ONLY. Which is preferred and why?


That's because there is no difference.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts CICS VSAM RLS READ akodakka CICS 3 Tue Oct 04, 2016 3:09 pm
No new posts Multi row fetch - "for read only... Nileshkul DB2 3 Sun Aug 14, 2016 12:52 am
No new posts JCL to fetch schedule status from act... parasmalik20 CA Products 1 Thu Jun 02, 2016 7:11 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us