Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
に2つの条件を持つDQLクエリを作成しようとしていますleft join。1つの条件で問題ありませんが、それ以上の条件のセマンティクスを見つけることは不可能です。DQLで書き込もうとしているSQLの例のすぐ下:
left join
SELECT u.id AS uid, FROM user u LEFT JOIN phonenumber p ON (u.id = p.user_id AND u.status='1') HAVING COUNT(p.id) > 3
ありがとう
ONおよび/またはWITHキーワードを試しましたか?