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

Type of Lock During a Multiple statement Request- - response (4) by vasudev

$
0
0

Hi Dieter,
Consider this MSR statements. This involves 2 tables customer and orders
Locking table customer for access
Locking table order for access
Sel c.*,o.*
from customer inner join orders on <conditions>
;update orders
set = <Value> where conditions
In this MSR, statement 1 will use access lock on the customer and orders table. Statement 2 uses write lock on orders table. So, Customer table is locked for access and order table is loacked for write.
Please correct me if i am wrong.
 
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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