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.
我正在尝试通过休眠执行以下报告 mysql 查询,但我无法使用休眠限制和投影选项成功。
SELECT sum(totalprice) as totalprice, hour(createdate) as createdate where day(createdate) = day(curdate()) group by day(createdate), hour(createdate)
谁能帮我把这个 sql 查询转换成休眠格式?或者有没有更好的选择来执行这些复杂的 sql 查询?
为什么你不能使用存储过程来在休眠调用的情况下简化你的实现?