举个简单的例子大家就明白了
SQL:
select a from tableA a left join table b on a.id=b.id;//tableA和tableB左关联,返回tableA的数据
HQl:
select a from tableA as a,tableB as b where a.id=b.id;
看到这里大家应该明白了,
举个简单的例子大家就明白了
SQL:
select a from tableA a left join table b on a.id=b.id;//tableA和tableB左关联,返回tableA的数据
HQl:
select a from tableA as a,tableB as b where a.id=b.id;
看到这里大家应该明白了,