mysql关于临时表的联查问题
存储过程中的代码:
create temporary table temp1 select id,name from mytable1;
select a.id from (select * from temp1) a
left join (select * from temp1) b on a.id = b.id;
这种情况下 为什么没有查询结果?
如果是 left join (select * from mytable1) b on a.id = b.id 时 就有结果返回
请大神分析一下 ,本人新手分少,请见谅