我是靠谱客的博主 安详外套,这篇文章主要介绍groovy中多行sql书写,现在分享给大家,希望可以做个参考。

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书写内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(102)

评论列表共有 0 条评论

立即
投稿
返回
顶部