提问人:Rulong Ma 提问时间:11/13/2023 最后编辑:James ZRulong Ma 更新时间:11/13/2023 访问量:29
如何将以下sql转换为QueryDSL形式?
How to convert the following sql into QueryDSL form?
问:
如何将以下sql转换为QueryDSL形式?
SELECT user.name,la.library_id,l.library_name,lr.coun
FROM library_admin la
LEFT JOIN user on la.user_id = user.id
left join library l on la.library_id = l.id
left join (SELECT lend_admin_id ,COUNT(lend_admin_id) coun FROM lend_record
GROUP BY apply_status, lend_admin_id
HAVING apply_status = 'APPROVED') lr
on lr.lend_admin_id = la.user_id
order by la.library_id;
答: 暂无答案
评论
SELECT * FROM mytable