嗨,我想知道哪种查询适用于多个表。
例如:
select table1.id, table1.name from table1,table2,table3
where table1.id=table2.id and table2.id=table3.id
或者
select table1.id, table1.name
from table1
inner join table2 on table1.id=table2.id
inner join table3 on table2.id=table3.id
where 1
或者
select table1.id, table1.name
from table1
join table2 on table1.id=table2.id
join table3 on table2.id=table3.id
where 1
哪种查询最适合性能?