Skip to content

Instantly share code, notes, and snippets.

@ddelponte
Created March 15, 2013 17:45
Show Gist options
  • Save ddelponte/5171678 to your computer and use it in GitHub Desktop.
Save ddelponte/5171678 to your computer and use it in GitHub Desktop.
Groovy SQL example of counting rows
def countRows = db.firstRow("select count(*) as numberOfRows from languages")
assert 4 == countRows.numberOfRows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment