If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > alternative of with(updlock,readpast) of SQL server in DB2?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-03-11, 03:11
aratkumarrana aratkumarrana is offline
Registered User
 
Join Date: May 2011
Posts: 1
Question alternative of with(updlock,readpast) of SQL server in DB2?

I have two thread..
1) Thread 1 selects the top record (status = 0) and places an exclusive lock on it, but allows read past and obtains ID.

2) Thread 2 selects the top record (status = 0) and can’t select Thread 1’s record because its locked but instead of being blocked is allowed to read past the current locked record to the next record

for this "select *from table with(updlock,readpast) where status=0" is used in SQL server but, I want the same functionality in DB2. Could anybody help me on this, its urgent as I am not getting it in google.
Reply With Quote
Reply

Tags
readpast), with(updlock

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On