我有两个名为geocaching geocaching_countries的表,现在我想在SQL中构建与此查询等效的DQL查询:
SELECT g.id,g.name,g.long,g.lat,g.altitude,g.town, g.region,
g.district, g.geocaching_countries_id, gc.image FROM geocaching g
JOIN geocaching_countries gc ON geocaching_countries_id=gc.id
WHERE g.long=(SELECT max(geocaching.long) FROM geocaching);
我是ORM的初学者所以我需要你的帮助。 感谢