tableA
------
Aprimarykey,
Afield1,
Afield2,
AfieldtoMatch
tableB
------
Bprimarykey,
Bfield1,
Bfield2,
BfieldtoMatch
表之间没有关系。如果我想要以下结果,类和 hbm 文件会是什么样子?
select distinct tableA.Afield1, tableA.Afield2,tableA.AfieldMatch tableB.Bfield1,tableB.Bfield1
from tableA innerjoin tableB on tableA.AfieldtoMatch=tableB.Bmatchfield