SQL and execute the plan as shown in figure,
CodePudding user response:
With several not in, when a user not_enjoy or enjoy data is very big, the query is slow (such as the data on the user's not_enjoy have 1 w),
CodePudding user response:
CSDN already no one?
CodePudding user response:
Not in optimizing
Select * from A where ID not in (select ID from B)
Replace with
Select * from A left join B on Anderson, D=B.I D where B.I D is null
CodePudding user response: