The from of the hql statement does not support subqueries

In the morning, I made a cross-table query and wrote a long hql statement, but it was an error! Later, I checked the Internet and found that the from of the hql statement does not support sub-queries, but the where does!
   For example: select a from A a,(select b from B b,C c where b.id=c.id) d 
       where a.id=d.id; 
  change to →select a from A a where a.id in ( select b.id from B b,C c 
       where b.id=c.id);

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326963743&siteId=291194637