我想写一个复杂的hql查询与来自3个表的关系.必须 Select 选定的列,以便按ID定位它们
@Query("SELECT p.regId, p.method, p.tax, p.fee, p.netAmount, r.countSec, p.status " +
"FROM P p INNER JOIN R r INNER JOIN D d on p.regId = r.id AND p.regId = d.id")
List<P> findAllByRegId(String regId);
我的编译器无法执行请求,我不知道问题出在哪里!请帮帮忙
org.postgresql.util.PSQLException: ERROR: syntax error at or near "join"