Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 31st, 2003, 05:43 AM
elecoest elecoest is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: France
Posts: 1 elecoest User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
equivalent of for update nowait in Oracle

Hi,

What is the syntax in Firebird to have a lock on select (not on update, delete).

For example :
user 1 : select.. for update nowait

user 2 : select .. for update nowait -> exception on lock select.

I am this comportment in Oracle and I'd like to have the same in Firebird.

Thanks.

Reply With Quote
  #2  
Old January 1st, 2004, 03:50 AM
goreXP's Avatar
goreXP goreXP is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Bucharest
Posts: 72 goreXP User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 18 m 28 sec
Reputation Power: 10
Send a message via MSN to goreXP Send a message via Yahoo to goreXP
you have it!

see http://www.ibphoenix.com/downloads/...eleaseNotes.pdf
Quote:
(1.5) Explicit locking
Nickolay Samofatov
The addition of the optional WITH LOCK clause provides a limited explicit pessimistic locking capability
for cautious use in conditions where the affected row set is a) extremely small (ideally, a singleton)
and b) precisely controlled by the application code.
NOTE The need for a pessimistic lock in Firebird is very rare indeed and should be well understood
before use of this extension is considered.
Syntax
SELECT ... FROM <sometable>
[WHERE ...]
[FOR UPDATE [OF ...]]
WITH LOCK;

around page 13/14
__________________
Romania it's a beautiful country ... too bad that it's populated with ... peoples!

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > equivalent of for update nowait in Oracle

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap