Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle SQL: NOLOCK in join statment

I can not use NOLOCK after table names in join statements. Is it even a valid scenario to try to read uncommitted data over JOINs

like image 977
Naren Karanam Avatar asked Feb 07 '23 13:02

Naren Karanam


1 Answers

The join is irrelevant. NOLOCK isn't used in Oracle. A query will only see committed data (plus any uncommitted changes in the transaction performing the query).

You can write a query such as SELECT * FROM tbl NOLOCK but NOLOCK is simply being used as a table alias and doesn't change the querying mechanism.

like image 145
Gary Myers Avatar answered Feb 09 '23 02:02

Gary Myers