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.
我们如何在 HQL 中使用 mod 操作?
MS-SQL 示例:
select * from someTable where someColumn%10 = 1
总部:
FROM someTable WHERE MOD(someColumn,10)=1
当然,您可以对 10 和 1 数字使用绑定参数。
来自官方文档
模组:
计算第一个参数除以第二个的余数。