def results = my.Goods.findAll("""
from Goods as g
where g.title = ?""", ['title'])
must be ,not be
def fa = my.Goods.findAll("from Goods as g where g.title = ?",['title'])
//after the field of "from" is class name
def que = my.Goods.executeQuery("from Goods g where g.title = ?",['title'])

最后
以上就是安详外套最近收集整理的关于groovy中多行sql书写的全部内容,更多相关groovy中多行sql书写内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复