Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Lock row for access : In insert-Select - response (5) by FarhanArif

$
0
0

Locking Row for Access only works (locks only a limited number of rows in a table) when there is an equality condition on a UPI or NUPI in a WHERE clause. This is because it is generally a row hash level lock.
Example:
LOCKING ROW FOR ACCESS
SEL * FROM TAB1
WHERE  COL1 = 1
In the case where there is no WHERE clause, Locking Row for Access is automatically converted to a Table Level lock (LOCKING TABLE FOR ACCESS)

 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>