📄 ddltablelockmode.out
字号:
Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Delete ResultSet using row locking:deferred: falseRows deleted = 0Indexes updated = 0Execute Time = 0 Project-Restrict ResultSet (1): Number of opens = 1 Rows seen = 0 Rows filtered = 0 restriction = false projection = true constructor time (milliseconds) = 0 open time (milliseconds) = 0 next time (milliseconds) = 0 close time (milliseconds) = 0 restriction time (milliseconds) = 0 projection time (milliseconds) = 0 Source result set: Table Scan ResultSet for ROW1 at read committed isolation level using exclusive row locking chosen by the optimizer Number of opens = 1 Rows seen = 0 Rows filtered = 0 Fetch Size = 1 constructor time (milliseconds) = 0 open time (milliseconds) = 0 next time (milliseconds) = 0 close time (milliseconds) = 0 scan information: Bit set of columns fetched=All Number of columns fetched=1 Number of pages visited=1 Number of rows qualified=0 Number of rows visited=0 Scan type=heap start position: null stop position: null qualifiers:Column[0][0] Id: 0Operator: =Ordered nulls: falseUnknown return value: falseNegate comparison result: falseij> CALL WAIT_FOR_POST_COMMIT();0 rows inserted/updated/deletedij> delete from table1;1 row inserted/updated/deletedij> values SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS();1 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Statement Name: nullStatement Text: delete from table1Parse Time: 0Bind Time: 0Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Delete ResultSet using table locking:deferred: falseRows deleted = 1Indexes updated = 0Execute Time = 0 Project-Restrict ResultSet (1): Number of opens = 1 Rows seen = 1 Rows filtered = 0 restriction = false projection = true constructor time (milliseconds) = 0 open time (milliseconds) = 0 next time (milliseconds) = 0 close time (milliseconds) = 0 restriction time (milliseconds) = 0 projection time (milliseconds) = 0 Source result set: Table Scan ResultSet for TABLE1 at read committed isolation level using exclusive table locking chosen by the optimizer Number of opens = 1 Rows seen = 1 Rows filtered = 0 Fetch Size = 1 constructor time (milliseconds) = 0 open time (milliseconds) = 0 next time (milliseconds) = 0 close time (milliseconds) = 0 next time in milliseconds/row = 0 scan information: Bit set of columns fetched={} Number of columns fetched=0 Number of pages visited=1 Number of rows qualified=1 Number of rows visited=1 Scan type=heap start position: null stop position: null qualifiers:Noneij> CALL WAIT_FOR_POST_COMMIT();0 rows inserted/updated/deletedij> delete from table1 where c1 = 1;0 rows inserted/updated/deletedij> values SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS();1 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Statement Name: nullStatement Text: delete from table1 where c1 = 1Parse Time: 0Bind Time: 0Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Delete ResultSet using table locking:deferred: falseRows deleted = 0Indexes updated = 0Execute Time = 0 Project-Restrict ResultSet (1): Number of opens = 1 Rows seen = 0 Rows filtered = 0 restriction = false projection = true constructor time (milliseconds) = 0 open time (milliseconds) = 0 next time (milliseconds) = 0 close time (milliseconds) = 0 restriction time (milliseconds) = 0 projection time (milliseconds) = 0 Source result set: Table Scan ResultSet for TABLE1 at read committed isolation level using exclusive table locking chosen by the optimizer Number of opens = 1 Rows seen = 0 Rows filtered = 0 Fetch Size = 1 constructor time (milliseconds) = 0 open time (milliseconds) = 0 next time (milliseconds) = 0 close time (milliseconds) = 0 scan information: Bit set of columns fetched=All Number of columns fetched=1 Number of pages visited=1 Number of rows qualified=0 Number of rows visited=0 Scan type=heap start position: null stop position: null qualifiers:Column[0][0] Id: 0Operator: =Ordered nulls: falseUnknown return value: falseNegate comparison result: falseij> CALL WAIT_FOR_POST_COMMIT();0 rows inserted/updated/deletedij> -- REPEATABLE READ tests-- repeatable read works the same as serializable when no indexes are involved-- create tables with different lock modesdrop table default1;0 rows inserted/updated/deletedij> create table default1(c1 int);0 rows inserted/updated/deletedij> drop table row1;0 rows inserted/updated/deletedij> create table row1(c1 int);0 rows inserted/updated/deletedij> alter table row1 locksize row;0 rows inserted/updated/deletedij> drop table table1;0 rows inserted/updated/deletedij> create table table1(c1 int);0 rows inserted/updated/deletedij> alter table table1 locksize table;0 rows inserted/updated/deletedij> set current isolation RS;0 rows inserted/updated/deletedij> -- all selects should be row locked except for table1select * from default1;C1 -----------ij> values SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS();1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -