我有一个普通的 sql 查询,例如:
String sql = "select * from Comm c where " +
"c.id in (select max(c.id) from Comm c, ReadComm rc where c.createdby=1 or (c.createdby = 1 and rc.userid=5) and c.id=rc.commid group by c.commThread) " +
"and c.isdelete = false order by c.senton desc";
是否可以将此类查询转换为条件?我用谷歌搜索了它,但没有得到这样的例子。
谢谢你。