我正在尝试执行这样的查询...
select * from table1 as t1
left join (
select * from table2 as t2
where t2.id = t1.t2_id
) as tt2
where tt2.value = 'SOME VALUE'
&我收到这样的错误...
ERROR: invalid reference to FROM-clause entry for table "t1"
Hint: There is an entry for table "t1", but it cannot be referenced from this part of the query.
该错误消息完全有道理,但我只想知道是否可以将 't1' 的值与保持相同结构的 't2' 匹配?