Oracle - How does Oracle manage transaction specific DML statements

前端 未结 4 1085
-上瘾入骨i
-上瘾入骨i 2021-01-22 11:57

Imagine I have this simple table:

Table Name: Table1
Columns:    Col1 NUMBER (Primary Key)
            Col2 NUMBER

If I insert a record into Ta

4条回答
  •  孤城傲影
    2021-01-22 12:38

    It's because of the unique index that enforces the primary key constraint. Even though the insert into the data block is not yet committed, the attempt to add the duplicate entry into the index cannot succeed, even if it's done in another session.

提交回复
热议问题