skurt on 07/27/11
Last Edited at 07/27/11 10:08pm
import groovy.sql.Sqldef service = ctx.getBean("userService")def dataSource = ctx.dataSourcedef db = new Sql(dataSource)def result = db.rows("""(SELECT id, points FROM user WHERE points <= 100 ORDER BY points DESC LIMIT 5)""")
Report this snippet Tweet
Comment:
You need to login to post a comment.