Revision: 49661
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 27, 2011 22:08 by skurt
Initial Code
import groovy.sql.Sql def service = ctx.getBean("userService") def dataSource = ctx.dataSource def db = new Sql(dataSource) def result = db.rows("""(SELECT id, points FROM user WHERE points <= 100 ORDER BY points DESC LIMIT 5)""")
Initial URL
Initial Description
Initial Title
running sql in grails console
Initial Tags
Initial Language
Groovy