$query7="select * from (select * from shouruzc UNION ALL select * from shouruzc5) as A where leixing!='216' order by hktime desc";
分别查询二条语句都只要零点几秒,联合查询就要十几秒,怎么能提高联合查询的效率?谢谢!
...全文
8654打赏收藏
UNION ALL联合查询好慢,有大神能帮优化一下以下语句吗?
$query7="select * from (select * from shouruzc UNION ALL select * from shouruzc5) as A where leixing!='216' order by hktime desc"; 分别查询二条语句都只要零点几秒,联合查询就要十几秒,怎么能提高联合查询的效率?谢谢!