Nei*_*her 2 sql inner-join derived-table
我对加入派生表的基本语法有疑问.
这是使用的基本语法:
select *
from table1 a
inner join (select * from table2) as T1
on 1.ID = T1.ID
Run Code Online (Sandbox Code Playgroud)
那会有用吗?
你问的是加入两个子查询?尝试:
select * from
(select * from table1) t1 inner join
(select * from table2) t2 on
t1.id = t2.id
Run Code Online (Sandbox Code Playgroud)