【发布时间】:2011-12-21 06:45:14
【问题描述】:
我有两个表 T1 和 T2,其中 t2 是子查询的结果
说清楚
select * from T1 join (select * from T3 where foo is not null) T2 on T1.key = T2.fk
【问题讨论】:
我有两个表 T1 和 T2,其中 t2 是子查询的结果
说清楚
select * from T1 join (select * from T3 where foo is not null) T2 on T1.key = T2.fk
【问题讨论】:
SELECT T1 FROM Table1Entity T1 JOIN Table1Entity.table2EntityAssociationField T2 WHERE T2.foo IS NOT NULL
在哪里
@Entity
class Table1Entity {
@OneToOne
Table2Entity table2EntityAssociationField;
}
和
@Entity
class Table2Entity {
private Object foo;
}
【讨论】: