我想知道如何使用grails标准执行列计算。基本上,将转换为以下sql查询的条件语法。
SELECT * FROM table WHERE (first_column * second_column) > 30;发布于 2014-01-28 17:00:58
一种可能的选择是使用sql restrictions
def results = DomainClass.withCriteria {
...
sqlRestriction "(first_column * second_column) > 30"
}https://stackoverflow.com/questions/21400148
复制相似问题