select id from table1
union select id from table2
union select id from table3
这里已经把三个表遍历了几次,union把重复的删除了,然后再( select tableContex.* from tableContex ) 连接。肯定会慢。
union select id from table2
union select id from table3
这里已经把三个表遍历了几次,union把重复的删除了,然后再( select tableContex.* from tableContex ) 连接。肯定会慢。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货