Is there any difference in the efficiency of the two SQL?

there seems to be no difference between the two SQL implementations.

select * from A 
left join B on A.aid=B.aid
where A.aid=100
select * from (
    select * from A where A.aid=100
) AA
left join B on AA.aid=B.aid

what do you think of SQL performing interpretive analysis?

Mar.14,2021

EXPLAIN select * from A 
left join B on A.aid=B.aid
where A.aid=100;

EXPLAIN select * from (
    select * from A where A.aid=100
) AA
left join B on AA.aid=B.aid

look at the execution plan of the two statements.

Menu