我的hql语句
from Mzyz as mzyz,(select id ,count(dah) from Mzyz group by dah) as b where mzyz.id = b.id
报错:unexpected token: count
在mysql数据库中select mzyz.* from ywb_mz_yzsf as mzyz,(select id ,count(dah) from ywb_mz_yzsf group by dah) as b where mzyz.id = b.id查询是一点问题也没有
不知道哪位可以指点一下,谢谢!
from Mzyz as mzyz,(select id ,count(dah) from Mzyz group by dah) as b where mzyz.id = b.id
报错:unexpected token: count
在mysql数据库中select mzyz.* from ywb_mz_yzsf as mzyz,(select id ,count(dah) from ywb_mz_yzsf group by dah) as b where mzyz.id = b.id查询是一点问题也没有
不知道哪位可以指点一下,谢谢!
像其他的方法实现吧
SQLQuerry进行原始sql查询吧