With Lock? !!!

Dúvidas, dicas e truques de PL/SQL. Aqui também vão assuntos relacionados a pacotes, triggers, funções, Java-Stored Procedures, etc
Post Reply
Trevisolli
Moderador
Moderador
Posts: 2016
Joined: Wed, 12 Jan 2005 3:25 pm
Location: Araraquara - SP

: -The
personal, good morning.

I would like to be clarified. For example, give an update, and make sure no one will tinker on this same record / line.

Doubt: He "hangs" the entire line or the column (s) referenced in the update?

2) What is the functionality of With Lock in the clauses? Would it be the same function as update, but with some other privileges?

Thanks,

Hugs,

Trevisolli
lamanita
Rank: Programador Pleno
Rank: Programador Pleno
Posts: 42
Joined: Mon, 17 May 2004 2:41 pm
Location: Porto Alegre - RS
Samuel, o lamanit@

Hello,
I know the forddate will block the whole line, it is not by column, it is by registration.
and have another, if you do a select for update without WHERE, it will give lock on the whole table. It will lock the lines that come in the consultation.
This lock is just for update, because you will be able to select a table in Lock normally.
About With Lock I do not know anything about it. I have already used the Lock Table [Table] in exclusive mode; That does the same thing ...
delphicarlos
Rank: Estagiário Júnior
Rank: Estagiário Júnior
Posts: 1
Joined: Wed, 31 Aug 2005 4:28 pm
Location: SP
Contact:
Carlos Eduardo Cabral

Still within the issue of Lock's, it is possible for me to know which line is being locked and for which user?
Let's say a user is locking a line and I want to find that line is this, is it possible?

grateful,

Carlos Eduardo
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests