db2 merge 操作的优化问题。

2025-03-01 00:31:10
推荐回答(1个)
回答1:

easy .
1: number加上索引 ;
2: 查询语句加上with ur 指定隔离级别可以避免锁表

另外:number加上索引之后也就加快delete操作的效率