UPDATE table_name as a
INNER JOIN DoNotCallList b
ON (a.tmpphone=b.PhoneNo)
SET a.donotcall=b.status,a.DateOfLastDNCLScrub=b.DateCreated;
大数据量联合查询时,需要把tmpphone,PhoneNo两个字段分别加索引,提高效率。
本文介绍了一种通过为tmpphone和PhoneNo字段添加索引来优化大数据量联合查询的方法,以此提升查询效率。
UPDATE table_name as a
INNER JOIN DoNotCallList b
ON (a.tmpphone=b.PhoneNo)
SET a.donotcall=b.status,a.DateOfLastDNCLScrub=b.DateCreated;
大数据量联合查询时,需要把tmpphone,PhoneNo两个字段分别加索引,提高效率。
210
10万+
1310

被折叠的 条评论
为什么被折叠?
