Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试做类似的事情
SELECT count(*) from (select distinct(col1, col2) from table);
使用休眠和mysql。
我知道我不能在 FROM 子句中使用子查询。除了query.list().size()原生sql还有什么办法吗?
query.list().size()
谢谢