Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 3 Thu Sep 21, 2017 9:54 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us