梦一场丶 2017-03-21 01:19 采纳率: 66.7%
浏览 4970
已采纳

hql语句左连接查询报错 Path expected for join!

String hql=" select new Map(o.id as id,o.regno as regno,o.uniscid as uniscid , o.entname as entname,o.lerep as lerep ,o.estdate as estdate,o.dom as dom, o.tel as tel , o.datasource as datasource ,d.nr as djjg ) from DataQyfrEntity o LEFT JOIN ABmDjjgEntity d with (d.bm=o.djjg) ";
图片说明


  • 写回答

3条回答 默认 最新

  • qq_36527577 2017-03-21 03:46
    关注

    LEFT JOIN ABmDjjgEntity d with (d.bm=o.djjg);连接查询用的是on,不是with吧。。。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?