not(isnull(et.atdpersonpaycode.paycode))
对应ON AC.id = PCODE.paycode
PCODE回表的时候要找出paycode不为null的行(慢在这)再去和AC做hashjoin
看着像索引选择不太合理,试试先analyze一下PCODE表
not(isnull(et.atdpersonpaycode.paycode))
对应ON AC.id = PCODE.paycode
PCODE回表的时候要找出paycode不为null的行(慢在这)再去和AC做hashjoin
看着像索引选择不太合理,试试先analyze一下PCODE表