老师,请教一下。这两个子查询使用 explain 来分析,发现几乎没差别。那我们工作中怎么才能知道两个sql的执行效率呢?
explain select empno, ename from t_emp where sal > (select sal from t_emp where empno = 7499) and empno != 7499
explain select e.empno, e.ename from t_emp e join (select sal from t_emp where empno = 7499) t on e.sal >t.sal and e.empno != 7499
where 子查询 explain:
from 子查询 explain: