Sql或者hql 查询时 需要多条件时可以使用嵌套查询

例如:from navigation n where n.class_2_number in(select n.id from n where n.visible='1')

猜你喜欢

转载自blog.csdn.net/qq_29622845/article/details/70214223
今日推荐